joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f8cd
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x445a57
call sub.MSVCRT.dll__EH_prolog
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x18], edi
push 1
lea eax, [esi + 0x50]
pop ebx
mov dword [ebp - 4], edi
push 0x21
push edi
push eax
mov dword [esi], 0x44afd4
mov dword [esi + 4], 0x44afb0
mov dword [esi + 8], 0x44af74
mov dword [esi + 0xc], 0x44af2c
mov dword [esi + 0x10], 0x44af1c
mov dword [esi + 0x14], 0x44aef4
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, esi
push 0x28
push 0x50
call fcn.00410f22
push edi
call dword [sym.imp.GDI32.dll_GetStockObject]
push edi
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4110cd
Capabilities:
Set global application hook

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp dword [esi + 0x24], 0
jne 0x4110fb
mov dword [0x45d754], esi
call ebx
push eax
push 0
push 0x410be8
push 3
call edi
mov dword [esi + 0x24], eax
cmp dword [esi + 0x28], 0
jne 0x411118
mov dword [0x45d754], esi
call ebx
push eax
push 0
push 0x410cc4
push 4
call edi
mov dword [esi + 0x28], eax
pop edi
pop esi
pop ebx
ret
Function at 0x412580
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push edi
cmp eax, 0x400
lea edi, [edx + eax]
jbe 0x4125e6
cmp word [edx], 0x5a4d
jne 0x4125e6
mov eax, dword [edx + 0x3c]
lea ecx, [edi - 2]
add eax, edx
cmp eax, ecx
jae 0x4125e6
cmp eax, edx
jbe 0x4125e6
cmp word [eax], 0x4550
jne 0x4125e6
lea ecx, [eax + 0x200]
cmp ecx, edi
jae 0x4125e6
cmp ecx, edx
jbe 0x4125e6
and dword [eax + 0x58], 0
and dword [eax + 0x9c], 0
lea ecx, [eax + 0x98]
push esi
add edi, 0xffffffa0
mov esi, dword [ecx]
and dword [ecx], 0
lea eax, [esi + edx - 0x60]
pop esi
cmp eax, edi
jae 0x4125e6
cmp eax, edx
ja 0x4125e8
xor eax, eax
pop edi
ret
Function at 0x412653
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 8], esi
je 0x41266c
mov dword [eax], esi
and byte [ebp - 0x18], 0
xor eax, eax
lea edi, [ebp - 0x17]
push 0x45926c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
je 0x412839
push ebx
push 2
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x41281d
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
je 0x41281d
push 0
push 0
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x41281d
test ebx, ebx
je 0x41281d
cmp ebx, 0xa00000
ja 0x41281d
test bl, 7
jne 0x41281d
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x41281d
push ebx
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
push 1
push ebx
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 1
jne 0x41281d
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
and byte [ebp - 0xa0], 0
push 0x18
pop ecx
xor eax, eax
lea edi, [ebp - 0x9f]
and dword [ebp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push dword [ebp - 4]
stosb byte es:[edi], al
call fcn.00412580
mov esi, eax
add esp, 0xc
test esi, esi
je 0x412829
mov eax, dword [esi]
cmp eax, dword [esi + 0x5c]
jne 0x412829
add eax, 0x13fbdbd1
cmp eax, 0x67452301
jne 0x412829
mov eax, dword [esi + 4]
mov dword [ebp - 8], 1
mov ecx, eax
and ecx, 0xf
je 0x412791
push 0x10
pop edx
sub edx, ecx
add eax, edx
mov ecx, esi
sub ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x412829
mov ebx, 0x45d764
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and byte [ebp - 0x3c], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x3b]
rep stosd dword es:[edi], eax
push dword [esi + 4]
lea eax, [ebp - 0x18]
push dword [ebp - 4]
push eax
call fcn.004335d5
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00412547
add esi, 8
push 0x54
lea eax, [ebp - 0xa0]
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x20
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xa0]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00437e2f
mov ecx, dword [ebp + 0xc]
add esp, 0xc
test ecx, ecx
je 0x412813
mov dword [ecx], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
je 0x412829
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
cmp dword [ebp - 4], 0
pop ebx
je 0x412839
push dword [ebp - 4]
call fcn.0042c9ee
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x412eb0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4141e1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
jne 0x414218
cmp dword [ebp - 0x110], 6
jb 0x414218
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x415736
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push esi
xor esi, esi
push edi
push esi
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x4157c6
mov eax, dword [ebp - 4]
test eax, eax
je 0x4157eb
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
test edi, edi
je 0x4157c6
mov eax, dword [ebp - 4]
inc eax
push eax
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4157ca
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
lea edx, [ecx + esi]
cmp edx, eax
ja 0x4157d3
mov eax, dword [ebp + 0xc]
push ecx
add eax, esi
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esi, dword [ebp - 8]
push edi
call fcn.0042c9ee
add esp, 0x10
lea eax, [ebp - 4]
push 0
push 0
push eax
push dword [ebp + 8]
jmp 0x41574f
xor eax, eax
jmp 0x4157ee
push edi
call fcn.0042c9ee
pop ecx
jmp 0x4157eb
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add esi, eax
push edi
push esi
call sub.MSVCRT.dll_memcpy
push edi
call fcn.0042c9ee
add esp, 0x10
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416779
Capabilities:
Get common file path

Disassembly:
mov eax, 0x445c58
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x51c
push ebx
push esi
push edi
mov ecx, 0x45d9e0
mov dword [ebp - 0x10], esp
call fcn.00417ac7
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x326]
mov word [ebp - 0x328], bx
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.0041414c
cmp eax, ebx
lea eax, [ebp - 0x328]
push 0x104
push eax
je 0x4167e0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x416923
push str.driversetchosts
jmp 0x4167f3
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x416923
push 0x459ab0
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x416923
lea eax, [ebp - 0x328]
push 0x459aac
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp - 0x18], esi
je 0x416918
test byte [esi + 0xc], 0x10
jne 0x416910
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x11f]
mov byte [ebp - 0x120], bl
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x120]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x527]
mov byte [ebp - 0x528], bl
push 0x200
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0041693a
add esp, 0x18
cmp eax, ebx
je 0x416829
lea eax, [ebp - 0x528]
test eax, eax
jne 0x41689f
xor edi, edi
jmp 0x4168d7
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0042d380
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x528]
push 0xffffffffffffffff
push eax
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp - 0x18]
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.00408d5c
lea eax, [ebp - 0x14]
mov ecx, 0x45d9e0
push eax
lea eax, [ebp - 0x1c]
push dword [0x45d9e4]
mov byte [ebp - 4], 1
push eax
call fcn.00417b15
push dword [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0042c9ee
pop ecx
jmp 0x416829
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
jmp 0x416925
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x534]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416c8f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor eax, eax
push esi
cmp dword [ebp + 8], eax
je 0x416d3a
cmp dword [ebp + 0xc], eax
je 0x416d3a
push edi
mov ecx, 0x81
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], ax
rep stosd dword es:[edi], eax
push 0x104
push dword [ebp + 0xc]
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
pop edi
je 0x416d3a
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
jne 0x416d35
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
jne 0x416d3a
lea eax, [ebp - 0x208]
push str..url
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
je 0x416d3a
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
je 0x416d3a
push 1
pop eax
jmp 0x416d3c
xor eax, eax
pop esi
leave
ret

Function at 0x417cdb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
call fcn.00417c82
cmp dword [ebp + 0x10], 0
pop ecx
je 0x417d36
cmp dword [ebp + 0x10], eax
jl 0x417d36
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
and word [ecx], 0
cmp dword [ebp + 0x18], esi
jle 0x417d30
push ebx
mov eax, esi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + 0x44c40c]
mov edx, dword [ebp + 0x14]
add al, byte [ebp + 8]
xor al, byte [esi + edx]
xor al, 0x80
movzx ax, al
mov word [ecx], ax
and word [ecx + 2], 0
inc esi
inc ecx
inc ecx
cmp esi, dword [ebp + 0x18]
jl 0x417d02
pop ebx
push 1
pop eax
pop esi
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41815a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
mov edx, 0x81
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x410], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
cmp dword [0x45da08], ebx
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x4181a5
xor eax, eax
jmp 0x41823f
push esi
mov esi, 0x104
lea eax, [ebp - 0x410]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41823c
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push 0x459c44
push eax
call esi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x208]
push eax
call esi
push 1
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.00418245
mov esi, eax
cmp esi, ebx
je 0x41823c
push dword [ebp + 0xc]
push esi
call fcn.004180c8
cmp eax, ebx
je 0x418235
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x41caef
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
jne 0x41cafd
push 1
pop eax
ret
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov word [eax + 0x1c], cx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
xor eax, eax
ret
Function at 0x41d0ed
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
call fcn.0041d482
push dword [esp + 0xc]
push 0
push 0
push 0
push dword [esp + 0x18]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
pop esi
test eax, eax
je 0x41d115
xor eax, eax
jmp 0x41d11b
call dword [sym.imp.KERNEL32.dll_GetLastError]
ret 8

Function at 0x41d11e
Capabilities:
Connect to http server

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [esp + 0xc], edi
jne 0x41d12f
push 8
pop eax
jmp 0x41d16c
cmp dword [esi + 4], edi
jne 0x41d141
push edi
push edi
mov ecx, esi
call fcn.0041d0ed
test eax, eax
jne 0x41d166
push dword [esp + 0x14]
push edi
push 3
push edi
push edi
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, edi
mov dword [esi + 8], eax
je 0x41d166
xor eax, eax
jmp 0x41d16c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
ret 0xc

Function at 0x41d253
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
mov esi, 0x45d334
push edi
mov ebx, ecx
push esi
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
and byte [ebp - 0x408], 0
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x407]
and dword [ebp - 4], eax
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov edi, 0x400
push eax
lea eax, [ebp - 0x408]
push edi
push eax
push dword [ebx + 0xc]
call esi
test eax, eax
je 0x41d2ef
mov eax, dword [ebp - 4]
test eax, eax
je 0x41d2ef
and byte [ebp + eax - 0x408], 0
lea eax, [ebp - 0x408]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x408]
push edi
push eax
push dword [ebx + 0xc]
jmp 0x41d2ab
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x41d2f8
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0
je 0x41d36e
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x41d36e
and dword [ebp + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea eax, [ebp + 0xc]
push 0
push eax
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, 0x3e5
je 0x41d317
mov eax, dword [ebp + 0xc]
cmp dword [ebx], eax
jb 0x41d360
cmp dword [ebp + 8], 0
je 0x41d360
push ebx
push eax
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41d35c
xor eax, eax
jmp 0x41d371
call edi
jmp 0x41d371
push 0x7a
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x7a
jmp 0x41d370
push 4
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41d378
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
xor esi, esi
mov ebx, ecx
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x41d443
and byte [ebp - 0x40c], 0
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x40b]
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp + 8]
mov esi, 0x400
push eax
lea eax, [ebp - 0x40c]
push esi
push eax
mov dword [ebp + 8], esi
push dword [ebx + 0xc]
call edi
test eax, eax
je 0x41d427
xor eax, eax
cmp dword [ebp + 8], eax
je 0x41d427
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x40c]
push dword [ebp + 8]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 8]
add dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x40c]
push esi
push eax
push dword [ebx + 0xc]
jmp 0x41d3e5
push dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 4], eax
sete al
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop edi
je 0x41d443
xor eax, eax
jmp 0x41d449
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
leave
ret 4
Function at 0x41d672
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x123c
call fcn.0042d380
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x41d68f
push 8
pop eax
jmp 0x41d76c
push edi
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x23a]
mov word [ebp - 0x23c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x123a]
mov word [ebp - 0x123c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x28], pe_nt_image_headers32
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x123c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
push eax
push 0x10000000
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 0x800
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x41d760
cmp dword [ebp - 0x30], 0xffffffff
je 0x41d768
mov edi, dword [ebp + 8]
push esi
push esi
mov ecx, edi
call fcn.0041d0ed
cmp eax, esi
jne 0x41d76b
push esi
lea eax, [ebp - 0x23c]
push dword [ebp + 0x10]
mov ecx, edi
push eax
call fcn.0041d11e
cmp eax, esi
jne 0x41d76b
push esi
push esi
lea eax, [ebp - 0x123c]
push esi
push eax
push 0x45984c
mov ecx, edi
call fcn.0041d171
cmp eax, esi
jne 0x41d76b
push esi
push esi
mov ecx, edi
call fcn.0041d1dd
jmp 0x41d76b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41d76b
push 8
pop eax
pop edi
pop esi
leave
ret
Function at 0x41dc67
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
pop ebx
test byte [0x45dc61], bl
jne 0x41dc88
or byte [0x45dc61], bl
call fcn.0041de40
mov dword [0x45dc48], eax
mov eax, dword [ebp + 8]
cmp eax, 0xc
ja case.0x41dc94.8
jmp dword [eax*4 + 0x41de0c]
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
and word [esi], 0
push esi
call fcn.0041ec15
pop ecx
test eax, eax
pop ecx
je 0x41dcc0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41de01
push dword [ebp + 0x10]
push esi
call fcn.0041de7b
jmp 0x41dcd6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040d2c7
pop ecx
pop ecx
jmp 0x41de01
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x41de01
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x41de01
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040d2c7
pop ecx
pop ecx
push str.downlo1
jmp 0x41ddf8
push ebx
push 0x1a
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x41dc94.8
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.LocalVirtualStoreProgram_Files
push dword [ebp + 0xc]
call esi
push str.TENCENTQQToolbar
push dword [ebp + 0xc]
jmp 0x41dd81
mov edi, dword [ebp + 0xc]
push ebx
push 0x1a
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x41dc94.8
cmp dword [0x45dc48], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x41dd7b
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.LocalLow
push edi
call esi
push str.TENCENTQQToolbar
push edi
call esi
jmp 0x41de01
push ebx
push 0x1c
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x41dc94.8
push str.TENCENTQQToolbar
jmp 0x41ddf8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.0041dc67
add esp, 0xc
push str.btns
jmp 0x41ddf8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.0041dc67
add esp, 0xc
push str.dlls
jmp 0x41ddf8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.0041dc67
add esp, 0xc
push str.users
jmp 0x41ddf8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.0041dc67
add esp, 0xc
push str.config
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, ebx
jmp 0x41de07
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41de40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
jne 0x41de77
cmp dword [ebp - 0x110], 6
jb 0x41de77
push 1
pop eax
leave
ret
xor eax, eax
leave
ret