joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c07a
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [0x54b4e0]
push 0x80
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x54b4e0]
push 0x407
push str.ReplaceOneSysFile___d_n
call fcn.00401ab0
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.OldFile__s_NewFile__s_n
call fcn.00401ab0
add esp, 0xc
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x48c0eb
mov eax, 1
jmp 0x48c1ce
mov eax, 1
test eax, eax
je 0x48c133
call dword [sym.imp.MSVCRT.dll_rand]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x54415c
push 0x104
lea eax, [ebp - 0x118]
push eax
call fcn.0040a230
add esp, 0x14
lea ecx, [ebp - 0x118]
push ecx
call fcn.0042f17a
add esp, 4
test eax, eax
je 0x48c133
jmp 0x48c0eb
push 0x80
lea edx, [ebp - 0x118]
push edx
call dword [0x54b4e0]
lea eax, [ebp - 0x118]
push eax
call dword [0x54b4b8]
push 1
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48c182
push 0
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.004281f0
mov ecx, eax
call fcn.004284a8
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48c1b6
push 4
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x10], eax
mov eax, 1
jmp 0x48c1ce
push 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x10], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x48e8ff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c8
push edi
mov byte [ebp - 0x210], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp + eax - 0x210]
mov dword [ebp - 0x108], ecx
push 0x104
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp + eax - 0x104]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x354], 2
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x214], 0
jmp 0x48e9b2
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
cmp dword [ebp - 0x214], 0x21d
jae 0x48eb74
mov byte [ebp - 0x5c0], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x5bf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp - 0x214]
mov eax, dword [edx*8 + 0x5448d0]
mov dword [ebp - 0x5c8], eax
mov ecx, dword [ebp - 0x5c8]
sub ecx, 1
mov dword [ebp - 0x5c8], ecx
cmp dword [ebp - 0x5c8], 4
ja case.default.0x48ea10
mov edx, dword [ebp - 0x5c8]
jmp dword [edx*4 + 0x48eb79]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax*8 + 0x5448d4]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0x547d7c
push 0x104
lea eax, [ebp - 0x5c0]
push eax
call fcn.00403f10
add esp, 0x14
jmp 0x48eb37
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx*8 + 0x5448d4]
push edx
lea eax, [ebp - 0x104]
push eax
push 0x547d84
push 0x104
lea ecx, [ebp - 0x5c0]
push ecx
call fcn.00403f10
add esp, 0x14
jmp 0x48eb37
mov edx, dword [ebp - 0x214]
mov eax, dword [edx*8 + 0x5448d4]
push eax
push str.AppPatch
lea ecx, [ebp - 0x104]
push ecx
push 0x547d98
push 0x104
lea edx, [ebp - 0x5c0]
push edx
call fcn.00403f10
add esp, 0x18
jmp 0x48eb37
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax*8 + 0x5448d4]
push ecx
push str.wbem
lea edx, [ebp - 0x210]
push edx
push 0x547da8
push 0x104
lea eax, [ebp - 0x5c0]
push eax
call fcn.00403f10
add esp, 0x18
jmp 0x48eb37
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx*8 + 0x5448d4]
push edx
push str.pchealthhelpctr_binaries
lea eax, [ebp - 0x104]
push eax
push 0x547dcc
push 0x104
lea ecx, [ebp - 0x5c0]
push ecx
call fcn.00403f10
add esp, 0x18
jmp 0x48eb37
push str.unkown_file_directory_type__n
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add edx, 0x40
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
lea eax, [ebp - 0x5c0]
push eax
push 0x104
lea ecx, [ebp - 0x4bc]
push ecx
call fcn.00415480
mov dword [ebp - 0x5c4], 0
lea edx, [ebp - 0x5c4]
push edx
lea eax, [ebp - 0x4bc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00416eb0
jmp 0x48e9a3
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x48eb8d
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [0x54b4e0]
push 0x80
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x54b4e0]
push 0x547df4
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x48ebe4
push 0x547e00
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x48ebe4
mov eax, 1
jmp 0x48ecea
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x48ec07
mov eax, 1
jmp 0x48ecea
mov eax, 1
test eax, eax
je 0x48ec4f
call dword [sym.imp.MSVCRT.dll_rand]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s.tmp_d
push 0x104
lea eax, [ebp - 0x118]
push eax
call fcn.0040a230
add esp, 0x14
lea ecx, [ebp - 0x118]
push ecx
call fcn.0042f17a
add esp, 4
test eax, eax
je 0x48ec4f
jmp 0x48ec07
push 0x80
lea edx, [ebp - 0x118]
push edx
call dword [0x54b4e0]
lea eax, [ebp - 0x118]
push eax
call dword [0x54b4b8]
push 1
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48ec9e
push 0
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.004281f0
mov ecx, eax
call fcn.004284a8
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48ecd2
push 4
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x10], eax
mov eax, 1
jmp 0x48ecea
push 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x10], eax
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x48ecee
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov dword [ebp - 0x19c], 1
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x198], 0x94
lea ecx, [ebp - 0x198]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x48ed93
cmp dword [ebp - 0x194], 5
jne 0x48ed5e
cmp dword [ebp - 0x190], 0
jne 0x48ed5e
lea edx, [ebp - 0x104]
push edx
push str._sSFC.dll
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a230
add esp, 0x10
jmp 0x48ed91
cmp dword [ebp - 0x194], 5
jne 0x48ed85
lea edx, [ebp - 0x104]
push edx
push str._sSFC_OS.dll
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a230
add esp, 0x10
jmp 0x48ed91
mov dword [ebp - 0x19c], 0
jmp 0x48eda9
jmp 0x48ed9f
mov dword [ebp - 0x19c], 0
jmp 0x48eda7
mov eax, dword [ebp - 0x19c]
jmp 0x48edab
jmp 0x48ed9f
jmp 0x48ed9f
mov esp, ebp
pop ebp
ret
Function at 0x4903d6
Capabilities:
Check http status code
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
mov eax, 0x10034
call sub.ntdll.dll__chkstk
mov eax, dword [str.Accept:___r_n_r_n]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x547fbc]
mov dword [ebp - 0xc], ecx
mov edx, dword [0x547fc0]
mov dword [ebp - 8], edx
mov eax, dword [0x547fc4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10020], ecx
push 0
push 0x84000100
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x1002c], eax
cmp dword [ebp - 0x1002c], 0
jne 0x49044b
mov eax, 2
jmp 0x4905ed
push 0x547fc8
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x10034], eax
cmp dword [ebp - 0x10034], 0
jne 0x490476
mov eax, 3
jmp 0x4905ed
mov dword [ebp - 0x1001c], 0
mov dword [ebp - 0x10018], 4
mov dword [ebp - 0x10028], 0
push 0
lea ecx, [ebp - 0x10018]
push ecx
lea edx, [ebp - 0x1001c]
push edx
push 0x20000013
mov eax, dword [ebp - 0x1002c]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4904d4
mov ecx, dword [ebp - 0x10034]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x11
jmp 0x4905ed
cmp dword [ebp - 0x1001c], 0xc8
jb 0x4904ec
cmp dword [ebp - 0x1001c], 0x12c
jb 0x490506
mov edx, dword [ebp - 0x10034]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x10
jmp 0x4905ed
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp - 0x10030], eax
lea eax, [ebp - 0x10024]
push eax
push 0x4000
lea ecx, [ebp - 0x10014]
push ecx
mov edx, dword [ebp - 0x1002c]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x490550
mov eax, dword [ebp - 0x10034]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 4
jmp 0x4905ed
cmp dword [ebp - 0x10024], 0
jne 0x49055b
jmp 0x4905cb
mov ecx, dword [ebp - 0x10034]
push ecx
mov edx, dword [ebp - 0x10024]
push edx
push 1
lea eax, [ebp - 0x10014]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 0x10028]
add ecx, dword [ebp - 0x10024]
mov dword [ebp - 0x10028], ecx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10030]
cmp edx, dword [ebp - 0x10020]
jbe 0x4905be
mov eax, dword [ebp - 0x10034]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
jmp 0x4905ed
mov ecx, 1
test ecx, ecx
jne 0x490512
mov edx, dword [ebp - 0x10034]
push edx
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
mov eax, dword [ebp - 0x10034]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4905f1
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 5
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49063e
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004903d6
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x490645
mov eax, 5
jmp 0x490648
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x490773
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntdll.dll_strrchr]
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x4907a7
xor eax, eax
jmp 0x49091d
mov edx, dword [ebp - 0x10c]
add edx, 1
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movsx eax, byte [edx]
test eax, eax
jne 0x4907c8
xor eax, eax
jmp 0x49091d
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Documents_and_Settings
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x49085e
push 0x5c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ntdll.dll_strrchr]
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x490818
xor eax, eax
jmp 0x49091d
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
push edx
push 0x104
lea eax, [ebp - 0x318]
push eax
call fcn.00409100
mov byte [ebp - 0x20d], 0
lea ecx, [ebp - 0x318]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00408000
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x49087f
xor eax, eax
jmp 0x49091d
lea edx, [ebp - 0x210]
push edx
call sub.ntdll.dll_strlen
add esp, 4
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10c]
cmp edx, dword [ebp - 4]
je 0x490918
mov eax, dword [ebp - 0x10c]
sub eax, dword [ebp - 4]
add eax, 1
cmp eax, 0x104
jbe 0x4908b8
xor eax, eax
jmp 0x49091d
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10c]
sub edx, dword [ebp - 4]
add edx, 1
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00409100
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x490904
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x4908f9
mov eax, dword [ebp - 4]
mov byte [eax], 0x2f
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x4908de
lea edx, [ebp - 0x107]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00409100
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x490921
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x49095c
jmp 0x490aa6
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x49097d
jmp 0x490aa4
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x490a66
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0x5480b8
mov edx, dword [ebp - 0x110]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x490a09
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax]
shr ecx, 0x10
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x118]
mov eax, dword [edx]
and eax, 0xffff
and eax, 0xffff
push eax
push str.StringFileInfo_04x_04xFileVersion
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
jmp 0x490a18
mov dword [ebp - 0x114], 0
jmp 0x490aa2
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x490a66
mov eax, dword [ebp - 0x118]
push eax
push 0x5480fc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
mov dword [ebp - 0x114], 1
jmp 0x490aa0
cmp dword [ebp - 0x114], 0
jne 0x490a75
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
cmp dword [ebp - 0x110], 0
je 0x490a98
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 0x110], 0
mov eax, dword [ebp - 0x114]
jmp 0x490aa8
jmp 0x490a66
jmp 0x490a66
jmp 0x490a66
jmp 0x490a66
mov esp, ebp
pop ebp
ret
Function at 0x490cd7
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0xc], 0x1001
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x490d3a
mov dword [ebp - 0x14], 5
jmp 0x490e28
push 0
push 0
push 3
push 0
push 0
push 0x50
push 0x548130
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x490d6a
mov dword [ebp - 0x14], 8
jmp 0x490e26
mov dword [ebp - 0x24], 0x4400040
push 0
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0
push 0x548140
push str._query_download.php
push 0x548160
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x490da6
mov dword [ebp - 0x14], 9
jmp 0x490e24
push 0xa0000000
push 0xd
push 0x548168
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x490dc9
mov dword [ebp - 0x14], 0xc
jmp 0x490e22
push 0
push 0
push 0x31
push 0x548178
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x490deb
mov dword [ebp - 0x14], 0xa
jmp 0x490e20
cmp dword [ebp - 0x20], 0
je 0x490dfb
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x10], 0
je 0x490e0b
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x18], 0
je 0x490e1b
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x14]
jmp 0x490e2a
jmp 0x490deb
jmp 0x490deb
jmp 0x490deb
jmp 0x490deb
jmp 0x490deb
mov esp, ebp
pop ebp
ret
Function at 0x49b320
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4
Function at 0x4a3210
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x410
push ebx
push ebp
mov ebp, dword [esp + 0x41c]
push esi
push edi
mov edi, ecx
mov si, word [ebp + 4]
and esi, 0x1ff
xor ebx, ebx
mov dword [esp + 0x1c], esi
cmp ebx, dword [edi + 0x20]
jae 0x4a3251
push ebx
lea ecx, [edi + 4]
mov dword [esp + 0x1c], ebx
call fcn.004a4b10
mov ebx, dword [eax]
and ebx, 0xffffff
cmp ebx, esi
jbe 0x4a3233
mov edx, dword [edi + 0x20]
cmp ebx, edx
jne 0x4a326a
cmp esi, edx
jb 0x4a325f
lea ebx, [esi + 1]
cmp ebx, edx
jbe 0x4a326a
lea eax, [ebx - 1]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 6]
mov dword [esp + 0x20], 0
test eax, eax
mov dword [esp + 0x14], 1
je 0x4a32a7
lea ecx, [esp + 0x24]
mov bp, word [eax + 4]
mov eax, dword [eax + 6]
and ebp, 0x1ff
add ecx, 4
sub ebp, esi
mov dword [ecx - 4], ebp
mov ebp, dword [esp + 0x14]
inc ebp
test eax, eax
mov dword [esp + 0x14], ebp
jne 0x4a3285
cmp ebx, edx
jae 0x4a331d
mov eax, dword [esp + 0x14]
mov ebp, 1
xor esi, esi
cmp ebp, eax
jae 0x4a32fa
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x20]
mov esi, ebx
add esi, dword [edx]
cmp esi, eax
jae 0x4a32f6
push esi
lea ecx, [edi + 4]
call fcn.004a4b10
test dword [eax], 0x1000000
jne 0x4a32f6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ebp
add ecx, 4
cmp ebp, eax
mov dword [esp + 0x10], ecx
jb 0x4a32c2
cmp ebp, dword [esp + 0x14]
je 0x4a331d
cmp esi, dword [edi + 0x20]
jae 0x4a331d
push ebx
lea ecx, [edi + 4]
mov dword [esp + 0x1c], ebx
call fcn.004a4b10
mov ebx, dword [eax]
mov eax, dword [edi + 0x20]
and ebx, 0xffffff
cmp ebx, eax
jb 0x4a32ab
mov eax, dword [esp + 0x14]
mov esi, dword [edi + 0x20]
mov ebp, dword [esp + eax*4 + 0x1c]
add ebp, ebx
cmp esi, ebp
ja 0x4a3362
lea ecx, [esi + 1]
mov dword [esp + 0x10], ecx
push esi
lea ecx, [edi + 4]
call fcn.004a4b10
mov ecx, dword [eax]
mov edx, dword [esp + 0x10]
xor edx, ecx
and edx, 0xffffff
xor edx, ecx
mov ecx, dword [esp + 0x10]
inc esi
inc ecx
cmp esi, ebp
mov dword [eax], edx
mov dword [esp + 0x10], ecx
jbe 0x4a3335
inc ebp
mov dword [edi + 0x20], ebp
mov eax, dword [esp + 0x14]
mov esi, ebx
test eax, eax
jbe 0x4a33fc
lea ecx, [esp + 0x20]
add edi, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
lea ebp, [eax + ebx]
cmp esi, ebp
je 0x4a33a4
push esi
mov ecx, edi
mov dword [esp + 0x1c], esi
call fcn.004a4b10
mov esi, dword [eax]
and esi, 0xffffff
cmp esi, ebp
jne 0x4a338c
push esi
mov ecx, edi
call fcn.004a4b10
mov edx, dword [eax]
push esi
or edx, 0x1000000
mov ecx, edi
mov dword [eax], edx
call fcn.004a4b10
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
mov ecx, edi
call fcn.004a4b10
mov edx, dword [eax]
mov ebp, dword [esi]
mov ecx, edx
xor ecx, ebp
and ecx, 0xffffff
xor ecx, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
and ecx, 0xffffff
mov esi, ecx
mov ecx, dword [esp + 0x10]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x4a337f
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebx
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x410
ret 4
Function at 0x4a8520
Capabilities:
Get thread local storage value
Print debug messages
Set thread local storage value

Disassembly:
mov ecx, 0x5644ac
jmp fcn.004a8530

Function at 0x4a8c00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4a8c71
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x4a8c71
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x4a8c5a
jmp 0x4a8c71
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x4aa2a0
Capabilities:
Hash data with md5

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