joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3f10
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
push ebp
mov eax, dword [ebx + 0x26c4]
push esi
push edi
mov esi, dword [eax + ecx*4]
mov ecx, 0xa
xor eax, eax
lea ebp, [esi + 0x8038]
lea edx, [esi + 0x34]
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x2000
mov edi, edx
mov dword [ebp], 0x28
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x8034]
lea edi, [esi + 0x8050]
test eax, eax
mov dword [esi + 0x804c], edx
mov dword [edi], 0x8000
je 0x4a3fa0
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
sub edx, ecx
mov ecx, dword [eax + 0x14]
sbb ecx, dword [eax + 0x1c]
sub edx, dword [eax + 8]
sbb ecx, dword [eax + 0xc]
mov eax, edx
add eax, 1
adc ecx, 0
ja 0x4a3f8b
cmp eax, 0x8000
jbe 0x4a3f9a
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x4a3fe1
mov dword [esp + 0x14], ecx
jmp 0x4a3fe1
mov eax, dword [ebx + 0x5ceb8]
mov ecx, dword [ebx + 0x5cebc]
cmp eax, 0xffffffff
jne 0x4a3fb5
cmp ecx, eax
je 0x4a3fe3
mov edx, dword [ebx + 0x5cec0]
sub eax, edx
mov edx, dword [ebx + 0x5cec4]
sbb ecx, edx
ja 0x4a3fce
cmp eax, 0x8000
jbe 0x4a3fdd
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x4a3fe1
mov dword [esp + 0x14], ecx
mov dword [edi], eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x20], 9
cmp dword [ecx + 4], 1
je 0x4a4028
mov edx, dword [esi + 0x18]
push esi
push 1
push ebp
push edx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x4a405a
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov ecx, dword [edi]
mov edx, dword [esi + 0x804c]
mov eax, dword [esi + 0x18]
push edi
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4a405a
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4a4076
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov edx, dword [esp + 0x1c]
mov ecx, ebx
push edx
call fcn.004a4440
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x4a4580
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x10000000
push 0
push 0
push 0
mov dword [ebp - 4], ecx
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, dword [ebp + 8]
test eax, eax
mov dword [esi + 0x10], eax
je 0x4a471c
mov eax, dword [esi + 0x1c]
xor edi, edi
add eax, 0x2348
xor ebx, ebx
push eax
mov dword [ebp + 8], 3
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4a45d7
mov edi, dword [esi + 0x1c]
add edi, 0x2348
mov ecx, dword [esi + 0x1c]
add ecx, 0x2048
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4a45f7
mov ebx, dword [esi + 0x1c]
add ebx, 0x2048
test edi, edi
jne 0x4a461b
mov edx, dword [ebp - 4]
lea eax, [edx + 0x603b0]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4a461b
mov eax, dword [ebp - 4]
lea edi, [eax + 0x603b0]
test ebx, ebx
jne 0x4a463f
mov ecx, dword [ebp - 4]
lea eax, [ecx + 0x604b0]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4a463f
mov edx, dword [ebp - 4]
lea ebx, [edx + 0x604b0]
mov ecx, dword [esi + 0x1c]
mov eax, 1
cmp dword [ecx + 4], eax
jne 0x4a464f
mov dword [ebp + 8], eax
mov edx, dword [esi + 0x10]
push 0x4a2960
push edx
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
push esi
add eax, 0x2148
mov edx, dword [ecx + 0x26bc]
mov ecx, dword [ebp + 8]
push edx
mov dx, word [eax - 0x2148]
push ecx
push ebx
push edi
push edx
push eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 0x14], eax
je 0x4a471c
mov ecx, dword [ebp - 4]
lea ebx, [ecx + 0x605b0]
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x4a470b
test ebx, ebx
mov dword [ebp - 0x10], 3
jne 0x4a46bc
mov dword [ebp - 0xc], ebx
jmp 0x4a46f2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
add eax, 3
and al, 0xfc
call fcn.004d3780
mov edx, dword [ebp + 8]
mov edi, esp
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], edi
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x10]
push 0xc
push eax
push 0x26
push ecx
mov dword [ebp - 8], 0x4ffed8
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, 1
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esp, [ebp - 0x1c]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a4730
Capabilities:
Send data
Send http request

Disassembly:
mov eax, 0x5154
call fcn.004d3780
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x246c]
push edi
test eax, eax
mov dword [esp + 0x10], 0x4fd678
je 0x4a475a
mov dword [esp + 0x10], str.POST
mov ax, word [0x4ffec0]
mov esi, dword [esp + 0x5168]
mov word [esp + 0x44], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x46]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x44]
mov dword [esp + 0x14], 0x4fd664
mov dword [esp + 0x18], 0
lea ecx, [eax + 0x1048]
add eax, 0x48
push ecx
push eax
push 0x4ec998
push 0x7ff
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [ebx + 0x62854]
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x14
mov edi, 0x8400c300
test eax, eax
je 0x4a47d5
push eax
call ebp
add esp, 4
test eax, eax
jle 0x4a47d5
mov edi, 0x8408c300
mov eax, dword [esi + 0x1c]
cmp dword [eax + 4], 4
jne 0x4a47e4
or edi, 0x803000
mov eax, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x18]
push edi
push ecx
mov ecx, dword [esi + 0x14]
push 0
lea edx, [esp + 0x54]
push str.HTTP_1.1
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
test eax, eax
mov dword [esi + 0x18], eax
je 0x4a48b2
mov dx, word [0x4ffec0]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, 0x1047
lea edi, [esp + 0x1046]
mov word [esp + 0x1044], dx
push 0x208f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1048]
mov ecx, ebx
push eax
push esi
mov dword [esp + 0x28], 0x28
call fcn.004a49d0
lea edx, [esp + 0x1044]
lea ecx, [esp + 0x1044]
push edx
mov dword [esp + 0x28], ecx
call ebp
mov ecx, dword [esi + 0x18]
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push 4
push eax
push 2
push ecx
mov dword [esp + 0x20], 0x3a98
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [esi + 0x18]
push esi
push 1
lea edx, [esp + 0x24]
push 0
push edx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5154
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5154
ret 4
Function at 0x4a5410
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov ax, word [0x4ffec0]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov word [esp + 0x18], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
xor ebp, ebp
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esi + 4]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
shl edi, 1
mov ecx, edi
push 2
neg ecx
push ebp
push ecx
push edx
call ebx
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
push edx
call ebp
cmp edi, dword [esp + 0x10]
jne 0x4a54e5
lea eax, [esp + 0x18]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4a54e5
mov edx, dword [esp + 0x10]
mov ecx, 0xfffffffc
push 1
sub ecx, edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call ebx
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 4]
add eax, ecx
push 1
push 0
neg eax
push eax
push edx
call ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret

Function at 0x4a54f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x26d4]
mov dword [esp + 0xc], edi
cmp eax, edi
jne 0x4a550d
mov dword [esp + 8], edi
jmp 0x4a551c
mov ecx, dword [esi + 0x26d8]
sub ecx, eax
sar ecx, 2
mov dword [esp + 8], ecx
mov edx, dword [esi + 4]
push 2
push edi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 8], edi
je 0x4a55c3
mov edx, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
call ebx
mov ebp, 4
mov eax, dword [esi + 0x26d4]
test eax, eax
je 0x4a5586
mov ecx, dword [esi + 0x26d8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x4a5586
mov ecx, dword [eax + edi*4]
lea edx, [esp + 0x14]
push 0
push edx
mov edx, dword [esi + 4]
push 0x20
push ecx
push edx
call ebx
add ebp, 0x20
inc edi
jmp 0x4a5554
mov edx, dword [esi + 4]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
mov dword [esp + 0x24], ebp
call ebx
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esi + 4]
add esp, 4
lea ecx, [esp + 0x14]
shl eax, 1
push 0
push ecx
push eax
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push edx
call ebx
pop ebp
pop ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
add esp, 8
ret
Function at 0x4a5950
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov eax, dword [ebx + 0x1c]
mov ebp, dword [ebx + 0x8050]
mov esi, ecx
push edi
cmp dword [eax + 4], 1
jne 0x4a596c
mov ebp, dword [ebx]
mov eax, dword [esi + 0x26e0]
xor edi, edi
cmp eax, edi
je 0x4a5a42
mov ecx, esi
call fcn.004a5410
mov edi, dword [ebx + 0x8034]
push 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
add ecx, eax
mov eax, dword [edi + 0xc]
adc eax, edx
mov edx, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 4]
sar edx, 0x1f
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4a59c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a5a90
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push 0
push edx
add ebx, 0x34
push ebp
push ebx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a5a90
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x4a5a90
mov ebp, dword [edi + 0x18]
add ebp, eax
mov eax, 0
mov dword [edi + 0x18], ebp
mov ebx, dword [edi + 0x1c]
adc ebx, eax
mov dword [edi + 0x1c], ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x5cec0]
add edx, ecx
mov dword [esi + 0x5cec0], edx
mov ecx, dword [esi + 0x5cec4]
adc ecx, eax
mov dword [esi + 0x5cec4], ecx
mov ecx, esi
call fcn.004a54f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edi
push edx
add ebx, 0x34
push ebp
push ebx
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a5a90
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x4a5a90
mov ecx, dword [esi + 0x5cec0]
add ecx, eax
mov dword [esi + 0x5cec0], ecx
mov eax, dword [esi + 0x5cec4]
adc eax, edi
pop edi
mov dword [esi + 0x5cec4], eax
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
Function at 0x4a7cd0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x400c
call fcn.004d3780
push esi
push edi
mov ecx, 0xfff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x4018]
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4a7d99
cmp eax, 0x3fff
ja 0x4a7d99
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4a7d99
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x4ee640
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a7d99
mov eax, dword [esp + 8]
xor edx, edx
mov esi, dword [esp + 0x4020]
mov edi, dword [esp + 0x401c]
mov dx, word [eax + 0xc]
mov ecx, dword [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
push edx
shr eax, 0x10
push eax
push str._d._d._d._d
push esi
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
mov word [edi + esi*2 - 2], 0
mov eax, 1
pop edi
pop esi
add esp, 0x400c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x400c
ret

Function at 0x4a7db0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4218
call fcn.004d3780
push esi
push edi
mov ecx, 0xfff
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x4224]
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4a7eeb
cmp eax, 0x3fff
ja 0x4a7eeb
lea ecx, [esp + 0x220]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4a7eeb
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x228]
push str.VarFileInfoTranslation
push ecx
mov dword [esp + 0x18], 4
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 8]
shr edx, 2
test edx, edx
jle 0x4a7eeb
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x4228]
xor ecx, ecx
push eax
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04x_s
lea eax, [esp + 0x28]
push 0x103
push eax
call esi
add esp, 0x18
lea ecx, [esp + 0x4230]
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x228]
push eax
push ecx
mov dword [esp + 0x1c], 0
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4a7eeb
mov edx, dword [esp + 0x4230]
push eax
mov eax, dword [esp + 0x4230]
dec edx
push 0x4eb504
push edx
push eax
call esi
add esp, 0x10
mov eax, 1
pop edi
pop esi
add esp, 0x4218
ret
pop edi
xor eax, eax
pop esi
add esp, 0x4218
ret
Function at 0x4a7f00
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4a7f26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, 1
je 0x4a7f28
mov eax, esi
pop esi
ret

Function at 0x4a85e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x30e0
call fcn.004d3780
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
mov word [esp + 0x1060], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x823
xor eax, eax
lea edi, [esp + 0x1062]
mov dword [esp + 0x10], 0x824
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push str.SoftwareMicrosoftInternet_ExplorerMain
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4a868b
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push esi
push esi
push str.Start_Page
push eax
call edi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1060]
push ecx
push edx
push esi
push esi
push str.Secondary_Start_Pages
push eax
mov dword [esp + 0x28], 0x1048
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x30f8]
mov edi, dword [esp + 0x30f4]
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0x18]
push edx
push 0x4eb504
push ebx
push edi
call ebp
lea eax, [esp + 0x1070]
mov word [edi + ebx*2 - 2], si
push eax
lea esi, [esp + 0x1074]
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jle 0x4a86fe
push esi
push edi
push str._s_r_n_s
push ebx
push edi
call ebp
mov ecx, dword [esp + 0x24]
mov word [edi + ebx*2 - 2], 0
lea esi, [esi + ecx*2 + 2]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
jg 0x4a86d2
push edi
call fcn.004afc20
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30e0
ret

Function at 0x4a8720
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [0x6dbf28]
mov eax, 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
test ecx, ecx
mov dword [esp], 1
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternationalScripts26
je 0x4a874c
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternational
lea ecx, [esp + 4]
push ecx
push eax
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4a878d
lea edx, [esp + 8]
lea eax, [esp]
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.AutoDetect
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x10
ret
Function at 0x4a87a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [0x6dbf28]
mov dword [esp], 1
test ecx, ecx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 4
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternationalScripts26
je 0x4a87cf
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternational
lea ecx, [esp + 4]
push ecx
push eax
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4a883d
lea edx, [esp + 8]
lea eax, [esp]
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.AutoDetect
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 8]
lea edx, [esp]
sete al
push ecx
push edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
push 4
push 0
push str.AutoDetect
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret
Function at 0x4a9470
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
mov dword [esp + 8], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x4a948c
pop ecx
ret
mov al, byte [esp]
test al, 0x20
je 0x4a9498
xor eax, eax
pop ecx
ret
test al, 7
jne 0x4a94a0
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret

Function at 0x4a94d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4da0ab
push eax
mov eax, 0x1260
mov dword fs:[0], esp
call fcn.004d3780
push esi
mov esi, dword [esp + 0x1274]
push edi
push 0x4fdb7c
mov edi, ecx
push esi
call fcn.004a8010
add esp, 8
test eax, eax
je 0x4a9638
lea eax, [esp + 0x220]
push 0x824
push eax
push 0
push esi
call fcn.004a8050
add esp, 0x10
test eax, eax
je 0x4a95d1
lea ecx, [esp + 0x220]
push str.iexplore.exe
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4a9588
lea edx, [esp + 0x220]
push 0x824
push edx
push 1
push esi
call fcn.004a8050
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x14
test eax, eax
jne 0x4a9588
lea ecx, [esp + 0x220]
push 0x824
push ecx
push eax
push esi
call fcn.004a8050
add esp, 0x10
lea edx, [esp + 0x220]
push edx
push 0x4eb504
push 0x824
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov word [edi + 0x1046], 0
push edi
call fcn.004afc20
mov ecx, dword [esp + 0x126c]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x126c
ret 4
lea ecx, [esp + 8]
call fcn.004aeaa0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1278], 0
call fcn.004aeb70
mov esi, eax
test esi, esi
je 0x4a961f
push esi
lea ecx, [esp + 0xc]
call fcn.004af050
test eax, eax
je 0x4a9615
push 0x824
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.004af090
push esi
lea ecx, [esp + 0xc]
call fcn.004aedf0
lea ecx, [esp + 8]
mov dword [esp + 0x1270], 0xffffffff
call fcn.004aeaf0
jmp 0x4a95ad
push 0x4ebb84
push esi
call fcn.004a8010
add esp, 8
test eax, eax
push esi
je 0x4a9590
push 0x824
push edi
push 0x4ffec0
push 0x4ebbb0
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x4a95ad
Function at 0x4a9d50
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd3a0
push 0x4d37f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x1084
call fcn.004d3780
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x3c
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x44], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
lea ecx, [eax + eax]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x54]
push eax
push 0x10000000
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
call ebx
add esp, 4
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4a9e6d
mov word [ebp - 0x109c], di
mov ecx, 0x411
lea edi, [ebp - 0x109a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push str.http:___s
push 0x823
lea ecx, [ebp - 0x109c]
push ecx
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
call esi
add esp, 0x10
lea edx, [ebp - 0x54]
push edx
push 0x10000000
lea eax, [ebp - 0x109c]
push eax
call ebx
add esp, 4
push eax
lea ecx, [ebp - 0x109c]
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4a9e6d
lea edx, [ebp - 0x109c]
push edx
push 0x4eb504
mov eax, dword [ebp + 0x10]
dec eax
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call esi
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
jmp 0x4a9ea7
mov edx, dword [ebp + 0xc]
push edx
call ebx
add esp, 4
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret