joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a09
Capabilities:
Check http status code
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov esi, ecx
push 0x20000013
push dword [esi + 0x80c]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x405a6d
mov ecx, dword [esi + 0x810]
push 3
call fcn.00406332
test eax, eax
je 0x405af9
push 0x74
push 0x42d9a4
push str.Unable_to_get_header_information__s_line__d
push 0x42d9f4
push 0x74
push 0x42da18
jmp 0x405aeb
cmp dword [ebp - 8], 0xc8
mov dword [ebp - 4], ebx
jne 0x405abf
mov edi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
jmp 0x405aa2
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push esi
push dword [esi + 0x80c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x405af9
cmp dword [ebp - 0x14], ebx
je 0x405ab6
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x80c]
call edi
test eax, eax
jne 0x405a81
jmp 0x405af9
mov eax, dword [ebp - 4]
mov byte [eax + esi], bl
push ebx
jmp 0x405b00
mov ecx, dword [esi + 0x810]
push 3
call fcn.00406332
test eax, eax
je 0x405af9
mov eax, 0x9a
push eax
push 0x42da3c
push str.Error_getting_response__s_line__d
push str._GetResponse_HTMLwrappers__QAEHXZ
push eax
push 0x42daa8
push dword [esi + 0x810]
call fcn.0040aefa
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004057dd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405b28
Capabilities:
Connect to http server
Create http request
Parse url

Disassembly:
push esi
push edi
push 0
mov esi, ecx
call fcn.004057dd
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x14], 0
jne 0x405b73
add esi, 0x810
mov ecx, dword [esi]
push 3
call fcn.00406332
test eax, eax
je 0x405b6b
push str.URL_specified_is_empty
push 0x42d548
push 0x24
push 0x42d5b0
push dword [esi]
call fcn.0040aefa
add esp, 0x14
xor eax, eax
inc eax
jmp 0x405ccf
push ebx
push 0x3c
lea ebx, [esi + 0x814]
push 0
push ebx
call fcn.00411920
lea eax, [esi + 0x850]
mov dword [esi + 0x818], eax
add esp, 0xc
lea eax, [esi + 0x860]
mov dword [esi + 0x824], eax
push 0x10
mov eax, 0x100
pop ecx
lea edx, [esi + 0x960]
mov dword [ebx], 0x3c
mov dword [esi + 0x81c], ecx
mov dword [esi + 0x828], eax
mov dword [esi + 0x840], edx
mov dword [esi + 0x844], eax
mov eax, dword [edi + 0x14]
cmp dword [edi + 0x18], ecx
jb 0x405bd8
mov edi, dword [edi + 4]
jmp 0x405bdb
add edi, 4
push ebx
xor ebx, ebx
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x405c2a
mov ecx, dword [esi + 0x810]
push 3
call fcn.00406332
test eax, eax
je 0x405c22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_Cracking_the_URL__d
push 0x42d5f0
push 0x33
push 0x42d658
push dword [esi + 0x810]
call fcn.0040aefa
add esp, 0x18
xor eax, eax
inc eax
jmp 0x405cce
push ebx
push ebx
push ebx
push ebx
push dword [esp + 0x24]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x804], eax
cmp eax, ebx
jne 0x405c68
lea edi, [esi + 0x810]
mov ecx, dword [edi]
push 3
call fcn.00406332
test eax, eax
je 0x405cbc
push str.Unable_to_perform_InternetOpen
push 0x42d6a0
push 0x3c
push 0x42d708
jmp 0x405cb2
movzx ecx, word [esi + 0x82c]
push ebx
push ebx
push 3
push ebx
push ebx
push ecx
lea ecx, [esi + 0x860]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x808], eax
cmp eax, ebx
jne 0x405ccc
lea edi, [esi + 0x810]
mov ecx, dword [edi]
push 3
call fcn.00406332
test eax, eax
je 0x405cbc
push str.Unable_to_perform_InternetConnect
push str._InitConnection_HTMLwrappers__QAEHABV__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__PBD_Z
push 0x45
push 0x42d7b8
push dword [edi]
call fcn.0040aefa
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004057dd
jmp 0x405cce
xor eax, eax
pop ebx
pop edi
pop esi
ret 8
Function at 0x40841e
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x42b83e
call fcn.00412054
sub esp, 0x44
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x40852f
cmp byte [esi + 0x41], 0
je 0x40852f
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x408457
xor al, al
jmp 0x408531
push edi
push 8
lea ecx, [ebp - 0x50]
call fcn.00408273
mov dword [ebp - 4], edi
push ebx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040778e
mov ecx, eax
call fcn.00406538
mov edi, dword [ebp - 0x3c]
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040778e
mov ecx, eax
call fcn.00406538
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
add edi, ebx
push edi
push dword [ebp - 0x10]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x4084c9
dec eax
je 0x4084cd
dec eax
dec eax
je 0x40852b
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.00405cd4
mov al, bl
pop ebx
jmp 0x408531
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040778e
mov ecx, eax
call fcn.00406538
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x40850d
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040778e
mov ecx, eax
call fcn.00406538
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00413619
add esp, 0x10
cmp edi, eax
jne 0x4084b6
cmp byte [esi + 0x41], 0
je 0x40852b
test edi, edi
jne 0x408466
push edi
push 8
lea ecx, [ebp - 0x50]
call fcn.004079ef
jmp 0x408466
mov bl, 1
jmp 0x4084b8
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4086cb
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x42b850
call fcn.00412054
sub esp, 0x50
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4086d7
xor eax, eax
jmp 0x4086ff
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x40870f
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x40870f
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
mov eax, dword [esi + 0x4c]
cmp eax, edi
je 0x408728
cmp dword [esi + 0x3c], edi
jne 0x40872d
push eax
push ebx
call fcn.00407489
pop ecx
pop ecx
test al, al
jne 0x4086fc
or eax, 0xffffffff
jmp 0x4086fe
push edi
push 8
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x10], bl
call fcn.00408273
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], edi
call fcn.0040778e
mov ecx, eax
call fcn.00406538
mov edi, dword [ebp - 0x48]
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040778e
mov ecx, eax
call fcn.00406538
lea edx, [ebp - 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x40881f
cmp eax, 1
jg 0x408843
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040778e
mov ecx, eax
call fcn.00406538
mov edi, dword [ebp - 0x18]
sub edi, eax
je 0x4087c4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040778e
mov ecx, eax
call fcn.00406538
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00413619
add esp, 0x10
cmp edi, eax
jne 0x408859
lea eax, [ebp - 0x10]
mov byte [esi + 0x41], 1
cmp dword [ebp - 0x1c], eax
jne 0x40886f
test edi, edi
ja 0x4087ea
cmp dword [ebp - 0x48], 0x20
jae 0x408859
push 0
push 8
lea ecx, [ebp - 0x5c]
call fcn.004079ef
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040778e
mov ecx, eax
call fcn.00406538
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040778e
mov ecx, eax
call fcn.00406538
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x20]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0xf]
push edx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x408777
jmp 0x408859
cmp eax, 3
jne 0x408859
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call fcn.00407489
pop ecx
pop ecx
test al, al
jne 0x40886f
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.00405cd4
mov eax, esi
jmp 0x4086fe
mov esi, dword [ebp + 8]
jmp 0x40885c
Function at 0x40b62a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push esi
push 0x400
lea eax, [ebp - 0x454]
push eax
xor esi, esi
push esi
call fcn.00410386
add esp, 0xc
test eax, eax
jne 0x40b652
inc eax
jmp 0x40b6bb
push edi
push str._binjavacpl.exe
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00411920
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push str.__tab_update
lea eax, [ebp - 0x454]
push eax
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
test eax, eax
je 0x40b6b9
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
pop esi
leave
ret 4

Function at 0x40bd08
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 [0x43a348]
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.0040ecde
mov dword [esi + 0x3c], eax
call fcn.0040cafb
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 0x40bc2f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40bd8f
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.0040b6de
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x40db62
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push esi
push edi
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x42f648
push 0x80000002
mov dword [ebp - 4], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40dc2f
mov byte [ebp - 0x40c], al
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x42f670
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jbe 0x40dc2f
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x40c]
push eax
call esi
test eax, eax
je 0x40dc2f
lea eax, [ebp - 0x40c]
push eax
call esi
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x40dbf3
xor eax, eax
jmp 0x40dc0d
lea eax, [esi + esi]
call fcn.004125c0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x40c]
push ecx
push eax
call fcn.00402420
mov esi, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
xor eax, eax
push 4
pop ecx
mov edi, 0x43160c
repe cmpsd dword [esi], dword es:[edi]
setne al
dec eax
and eax, 0x80004005
jmp 0x40dc34
mov eax, 0x80004005
lea esp, [ebp - 0x414]
pop edi
pop esi
leave
ret
Function at 0x40e3a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
lea esi, [edi + 0x108]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40e590
push esi
call fcn.0040f103
pop ecx
test eax, eax
je 0x40e590
lea eax, [ebp + 0xc]
push eax
push 1
xor ebx, ebx
push ebx
push 0x42f938
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e590
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x988]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x42f960
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x400
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x588]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x42f970
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x400
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x208]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x42f984
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x100
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1408]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x42f998
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x104
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1008]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x42f9a8
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x400
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0xd88]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x42f9b4
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x100
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0xe88]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x42f9c4
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x100
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x80
push eax
lea eax, [edi + 0xf88]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x42f9d0
push dword [ebp + 0xc]
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1560]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x42f9dc
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x80
call esi
test eax, eax
jne 0x40e540
cmp dword [ebp + 8], 3
jb 0x40e540
mov dword [edi + 0x15e0], 1
mov dword [ebp + 8], 0x50
cmp dword [edi + 0x15e0], ebx
je 0x40e579
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1510]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x42f9e8
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x40e573
cmp dword [ebp + 8], 0x28
je 0x40e579
mov dword [edi + 0x15e0], ebx
push dword [ebp + 0xc]
mov dword [edi + 0x150c], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40e595
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40e668
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push 0x42fa48
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40e697
mov eax, 0x80004005
jmp 0x40e869
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x108]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40e6a7
sub eax, ecx
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push 0x42fa70
push dword [ebp - 4]
call esi
lea ecx, [edi + 0x988]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40e6d3
sub eax, dword [ebp + 8]
push eax
push ecx
push 1
push ebx
push 0x42fa80
push dword [ebp - 4]
call esi
lea ecx, [edi + 0x588]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40e6fa
sub eax, dword [ebp + 8]
push eax
push ecx
push 1
push ebx
push 0x42fa90
push dword [ebp - 4]
call esi
lea ecx, [edi + 0x208]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40e721
sub eax, dword [ebp + 8]
push eax
push ecx
push 1
push ebx
push 0x42faa4
push dword [ebp - 4]
call esi
lea eax, [edi + 0x1408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40e772
lea eax, [edi + 0x1408]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40e754
sub eax, ecx
push eax
lea eax, [edi + 0x1408]
push eax
push 1
push ebx
push 0x42fab8
push dword [ebp - 4]
call esi
lea eax, [edi + 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40e7aa
lea eax, [edi + 0x1008]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40e78c
sub eax, ecx
push eax
lea eax, [edi + 0x1008]
push eax
push 1
push ebx
push 0x42fac8
push dword [ebp - 4]
call esi
lea eax, [edi + 0xd88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40e7e2
lea eax, [edi + 0xd88]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40e7c4
sub eax, ecx
push eax
lea eax, [edi + 0xd88]
push eax
push 1
push ebx
push 0x42fad4
push dword [ebp - 4]
call esi
lea eax, [edi + 0xf88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40e81a
lea eax, [edi + 0xf88]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40e7fc
sub eax, ecx
push eax
lea eax, [edi + 0xf88]
push eax
push 1
push ebx
push 0x42fae4
push dword [ebp - 4]
call esi
lea eax, [edi + 0xe88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40e852
lea eax, [edi + 0xe88]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40e834
sub eax, ecx
push eax
lea eax, [edi + 0xe88]
push eax
push 1
push ebx
push 0x42faf0
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov ecx, edi
call fcn.0040e59c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0x40e911
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x40e965
lea eax, [ebp - 4]
cmp ebx, edi
jne 0x40e94d
push eax
push 0x2001f
push edi
push 0x430398
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x40e957
push 1
push eax
call fcn.0040e8b8
pop ecx
pop ecx
cmp dword [ebp - 4], edi
je 0x40e9ac
mov dword [ebp - 8], 1
jmp 0x40e968
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
je 0x40e99e
cmp ebx, edi
jne 0x40e97f
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40e997
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push 1
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 8], edi
je 0x40e9ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40ea17
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 0x40ea4b
xor eax, eax
jmp 0x40eab0
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]
pop edi
test eax, eax
jne 0x40ea7e
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
Function at 0x40eab3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
and dword [ebp + 0x74], 0
push 0x94
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00411920
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x14], 2
jne 0x40eb46
cmp dword [ebp - 0x20], 6
jne 0x40eaf7
xor eax, eax
inc eax
jmp 0x40eb48
cmp dword [ebp - 0x20], 5
jne 0x40eb46
cmp dword [ebp - 0x1c], 1
jae 0x40eaf2
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40eb09
sub eax, edx
je 0x40eb3a
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40eb1a
sub eax, edx
je 0x40eb3a
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0x10]
push str.Service_Pack__d
push eax
call fcn.00414718
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x40eb46
cmp dword [ebp + 0x74], 2
jae 0x40eaf2
xor eax, eax
add ebp, 0x78
leave
ret

Function at 0x40eb4d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push 0x94
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00411920
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x40eb9b
cmp dword [ebp - 0x18], 6
jne 0x40eb8d
xor eax, eax
inc eax
jmp 0x40eb9d
cmp dword [ebp - 0x18], 5
jne 0x40eb9b
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
je 0x40eb9d
xor eax, eax
add ebp, 0x78
leave
ret

Function at 0x40ebee
Capabilities:
Delete registry value
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x4306d4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40ec15
xor eax, eax
leave
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x4306fc
push dword [ebp - 4]
call esi
push str.InstallOptions
push dword [ebp - 4]
call esi
push str.UpdateDescription
push dword [ebp - 4]
call esi
push str.UpdateTitle1
push dword [ebp - 4]
call esi
push str.UpdateTitle2
push dword [ebp - 4]
call esi
push str.UpdateMoreInfoUrl
push dword [ebp - 4]
call esi
push str.BalloonTitle
push dword [ebp - 4]
call esi
push str.BalloonTip
push dword [ebp - 4]
call esi
push str.DlgCaption
push dword [ebp - 4]
call esi
push str.MoreInfoTxt
push dword [ebp - 4]
call esi
push str.PreDownld
push dword [ebp - 4]
call esi
push str.UrlInfo
push dword [ebp - 4]
call esi
push str.NumTries
push dword [ebp - 4]
call esi
push str.LastUDCheckTime
push dword [ebp - 4]
call esi
push str.VersionXmlChecksum
push dword [ebp - 4]
call esi
push 0x4307dc
push dword [ebp - 4]
call esi
call fcn.0040eb4d
test eax, eax
je 0x40eccf
push str.TransferJobID
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop esi
leave
ret