joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488abf
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 0x488b72
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
cmp dword [ebp - 0x214], 0x21b
jae 0x488d34
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 + 0x53bdc8]
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.0x488bd0
mov edx, dword [ebp - 0x5c8]
jmp dword [edx*4 + 0x488d39]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax*8 + 0x53bdcc]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0x53f240
push 0x104
lea eax, [ebp - 0x5c0]
push eax
call fcn.00403f50
add esp, 0x14
jmp 0x488cf7
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx*8 + 0x53bdcc]
push edx
lea eax, [ebp - 0x104]
push eax
push 0x53f248
push 0x104
lea ecx, [ebp - 0x5c0]
push ecx
call fcn.00403f50
add esp, 0x14
jmp 0x488cf7
mov edx, dword [ebp - 0x214]
mov eax, dword [edx*8 + 0x53bdcc]
push eax
push str.AppPatch
lea ecx, [ebp - 0x104]
push ecx
push 0x53f25c
push 0x104
lea edx, [ebp - 0x5c0]
push edx
call fcn.00403f50
add esp, 0x18
jmp 0x488cf7
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax*8 + 0x53bdcc]
push ecx
push str.wbem
lea edx, [ebp - 0x210]
push edx
push 0x53f26c
push 0x104
lea eax, [ebp - 0x5c0]
push eax
call fcn.00403f50
add esp, 0x18
jmp 0x488cf7
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx*8 + 0x53bdcc]
push edx
push str.pchealthhelpctr_binaries
lea eax, [ebp - 0x104]
push eax
push str._s_s_s
push 0x104
lea ecx, [ebp - 0x5c0]
push ecx
call fcn.00403f50
add esp, 0x18
jmp 0x488cf7
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.004154e0
mov dword [ebp - 0x5c4], 0
lea edx, [ebp - 0x5c4]
push edx
lea eax, [ebp - 0x4bc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00416ee0
jmp 0x488b63
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x488d4d
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 [0x5429a0]
push 0x80
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x5429a0]
push 0x53f2b8
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x488da4
push 0x53f2c4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x488da4
mov eax, 1
jmp 0x488eaa
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 0x488dc7
mov eax, 1
jmp 0x488eaa
mov eax, 1
test eax, eax
je 0x488e0f
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.0040a2c0
add esp, 0x14
lea ecx, [ebp - 0x118]
push ecx
call fcn.0042ae0a
add esp, 4
test eax, eax
je 0x488e0f
jmp 0x488dc7
push 0x80
lea edx, [ebp - 0x118]
push edx
call dword [0x5429a0]
lea eax, [ebp - 0x118]
push eax
call dword [0x542978]
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 0x488e5e
push 0
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.00423e80
mov ecx, eax
call fcn.00424138
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 0x488e92
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 0x488eaa
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 0x488eae
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 0x488f53
cmp dword [ebp - 0x194], 5
jne 0x488f1e
cmp dword [ebp - 0x190], 0
jne 0x488f1e
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.0040a2c0
add esp, 0x10
jmp 0x488f51
cmp dword [ebp - 0x194], 5
jne 0x488f45
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.0040a2c0
add esp, 0x10
jmp 0x488f51
mov dword [ebp - 0x19c], 0
jmp 0x488f69
jmp 0x488f5f
mov dword [ebp - 0x19c], 0
jmp 0x488f67
mov eax, dword [ebp - 0x19c]
jmp 0x488f6b
jmp 0x488f5f
jmp 0x488f5f
mov esp, ebp
pop ebp
ret
Function at 0x48a646
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 [0x53f484]
mov dword [ebp - 0xc], ecx
mov edx, dword [0x53f488]
mov dword [ebp - 8], edx
mov eax, dword [0x53f48c]
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 0x48a6bb
mov eax, 2
jmp 0x48a85d
push 0x53f490
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 0x48a6e6
mov eax, 3
jmp 0x48a85d
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 0x48a744
mov ecx, dword [ebp - 0x10034]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x11
jmp 0x48a85d
cmp dword [ebp - 0x1001c], 0xc8
jb 0x48a75c
cmp dword [ebp - 0x1001c], 0x12c
jb 0x48a776
mov edx, dword [ebp - 0x10034]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x10
jmp 0x48a85d
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 0x48a7c0
mov eax, dword [ebp - 0x10034]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 4
jmp 0x48a85d
cmp dword [ebp - 0x10024], 0
jne 0x48a7cb
jmp 0x48a83b
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 0x48a82e
mov eax, dword [ebp - 0x10034]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
jmp 0x48a85d
mov ecx, 1
test ecx, ecx
jne 0x48a782
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 0x48a861
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 0x48a8ae
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.0048a646
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x48a8b5
mov eax, 5
jmp 0x48a8b8
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x48a9e3
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 0x48aa17
xor eax, eax
jmp 0x48ab8d
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 0x48aa38
xor eax, eax
jmp 0x48ab8d
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 0x48aace
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 0x48aa88
xor eax, eax
jmp 0x48ab8d
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.00409190
mov byte [ebp - 0x20d], 0
lea ecx, [ebp - 0x318]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00408090
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 0x48aaef
xor eax, eax
jmp 0x48ab8d
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 0x48ab88
mov eax, dword [ebp - 0x10c]
sub eax, dword [ebp - 4]
add eax, 1
cmp eax, 0x104
jbe 0x48ab28
xor eax, eax
jmp 0x48ab8d
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.00409190
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x48ab74
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x48ab69
mov eax, dword [ebp - 4]
mov byte [eax], 0x2f
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x48ab4e
lea edx, [ebp - 0x107]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00409190
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x48ab91
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 0x48abcc
jmp 0x48ad16
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 0x48abed
jmp 0x48ad14
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 0x48acd6
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0x53f580
mov edx, dword [ebp - 0x110]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x48ac79
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 0x48ac88
mov dword [ebp - 0x114], 0
jmp 0x48ad12
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 0x48acd6
mov eax, dword [ebp - 0x118]
push eax
push 0x53f5c4
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 0x48ad10
cmp dword [ebp - 0x114], 0
jne 0x48ace5
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
cmp dword [ebp - 0x110], 0
je 0x48ad08
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 0x48ad18
jmp 0x48acd6
jmp 0x48acd6
jmp 0x48acd6
jmp 0x48acd6
mov esp, ebp
pop ebp
ret
Function at 0x48af47
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 0x48afaa
mov dword [ebp - 0x14], 5
jmp 0x48b098
push 0
push 0
push 3
push 0
push 0
push 0x50
push 0x53f5f8
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 0x48afda
mov dword [ebp - 0x14], 8
jmp 0x48b096
mov dword [ebp - 0x24], 0x4400040
push 0
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0
push 0x53f608
push str._query_download.php
push 0x53f628
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 0x48b016
mov dword [ebp - 0x14], 9
jmp 0x48b094
push 0xa0000000
push 0xd
push 0x53f630
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x48b039
mov dword [ebp - 0x14], 0xc
jmp 0x48b092
push 0
push 0
push 0x31
push 0x53f640
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x48b05b
mov dword [ebp - 0x14], 0xa
jmp 0x48b090
cmp dword [ebp - 0x20], 0
je 0x48b06b
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x10], 0
je 0x48b07b
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x18], 0
je 0x48b08b
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x14]
jmp 0x48b09a
jmp 0x48b05b
jmp 0x48b05b
jmp 0x48b05b
jmp 0x48b05b
jmp 0x48b05b
mov esp, ebp
pop ebp
ret
Function at 0x4955a0
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 0x49d440
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 0x49d481
push ebx
lea ecx, [edi + 4]
mov dword [esp + 0x1c], ebx
call fcn.0049ed40
mov ebx, dword [eax]
and ebx, 0xffffff
cmp ebx, esi
jbe 0x49d463
mov edx, dword [edi + 0x20]
cmp ebx, edx
jne 0x49d49a
cmp esi, edx
jb 0x49d48f
lea ebx, [esi + 1]
cmp ebx, edx
jbe 0x49d49a
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 0x49d4d7
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 0x49d4b5
cmp ebx, edx
jae 0x49d54d
mov eax, dword [esp + 0x14]
mov ebp, 1
xor esi, esi
cmp ebp, eax
jae 0x49d52a
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 0x49d526
push esi
lea ecx, [edi + 4]
call fcn.0049ed40
test dword [eax], 0x1000000
jne 0x49d526
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ebp
add ecx, 4
cmp ebp, eax
mov dword [esp + 0x10], ecx
jb 0x49d4f2
cmp ebp, dword [esp + 0x14]
je 0x49d54d
cmp esi, dword [edi + 0x20]
jae 0x49d54d
push ebx
lea ecx, [edi + 4]
mov dword [esp + 0x1c], ebx
call fcn.0049ed40
mov ebx, dword [eax]
mov eax, dword [edi + 0x20]
and ebx, 0xffffff
cmp ebx, eax
jb 0x49d4db
mov eax, dword [esp + 0x14]
mov esi, dword [edi + 0x20]
mov ebp, dword [esp + eax*4 + 0x1c]
add ebp, ebx
cmp esi, ebp
ja 0x49d592
lea ecx, [esi + 1]
mov dword [esp + 0x10], ecx
push esi
lea ecx, [edi + 4]
call fcn.0049ed40
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 0x49d565
inc ebp
mov dword [edi + 0x20], ebp
mov eax, dword [esp + 0x14]
mov esi, ebx
test eax, eax
jbe 0x49d62c
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 0x49d5d4
push esi
mov ecx, edi
mov dword [esp + 0x1c], esi
call fcn.0049ed40
mov esi, dword [eax]
and esi, 0xffffff
cmp esi, ebp
jne 0x49d5bc
push esi
mov ecx, edi
call fcn.0049ed40
mov edx, dword [eax]
push esi
or edx, 0x1000000
mov ecx, edi
mov dword [eax], edx
call fcn.0049ed40
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
mov ecx, edi
call fcn.0049ed40
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 0x49d5af
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 0x4a2770
Capabilities:
Get thread local storage value
Print debug messages
Set thread local storage value

Disassembly:
mov ecx, 0x55b96c
jmp fcn.004a2780

Function at 0x4a2e50
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 0x4a2ec1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x4a2ec1
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 0x4a2eaa
jmp 0x4a2ec1
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 0x4a44f0
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
Function at 0x56caae
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x56cadf
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x56cae6
cmp ebx, dword [ebp + 8]
jae 0x56cae6
xor eax, eax
jmp 0x56cccc
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x56caf7
xor eax, eax
inc eax
jmp 0x56cccb
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x56cb09
cmp ecx, edx
jae 0x56cb6d
cmp dword [eax + 4], 0
je 0x56cb12
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x56cafe
cmp dword [ebp + 8], 0
je 0x56cb2c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x56cb6d
cmp eax, esi
jae 0x56cb6d
mov ecx, dword [0x1007128]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x56cb4e
cmp dword [eax*4 + 0x1007130], esi
je 0x56cb74
inc eax
cmp eax, ecx
jl 0x56cb40
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call fcn.0056cce2
test eax, eax
jl 0x56cbe4
mov eax, dword [ebp + 8]
jmp 0x56cbe6
xor eax, eax
jmp 0x56cccb
test eax, eax
jle 0x56caef
xor edx, edx
mov ebx, 0x1007170
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x56caef
cmp dword [eax*4 + 0x1007130], esi
je 0x56cbc3
lea eax, [ecx - 1]
test eax, eax
jl 0x56cbb0
cmp dword [eax*4 + 0x1007130], esi
je 0x56cbac
dec eax
jns 0x56cba0
test eax, eax
jge 0x56cbc1
cmp ecx, 0x10
jge 0x56cbbc
inc ecx
mov dword [0x1007128], ecx
lea eax, [ecx - 1]
jmp 0x56cbc3
je 0x56cbdb
xor edx, edx
test eax, eax
jl 0x56cbdb
lea ecx, [edx*4 + 0x1007130]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x56cbc9
xor eax, eax
xchg dword [ebx], eax
jmp 0x56caef
xor eax, eax
test eax, eax
je 0x56ccc9
cmp dword [ebp - 8], 0x1000000
jne 0x56ccc9
test byte [ebp - 0xc], 0xcc
je 0x56cc5b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x56ccc9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x56ccc9
cmp word [eax + 0x18], 0x10b
jne 0x56ccc9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x56ccc9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x56cc5b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x56cc5b
test byte [ecx + 0x27], 0x80
jne 0x56cb6d
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x1007170
xchg dword [edx], ecx
test ecx, ecx
jne 0x56cccb
mov ecx, dword [0x1007128]
test ecx, ecx
mov edx, ecx
jle 0x56cc8a
lea eax, [ecx*4 + 0x100712c]
cmp dword [eax], esi
je 0x56cc8a
dec edx
sub eax, 4
test edx, edx
jg 0x56cc7e
test edx, edx
jne 0x56ccbb
push 0xf
pop ebx
cmp ecx, ebx
jg 0x56cc97
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x56ccaf
lea eax, [edx*4 + 0x1007130]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x56cc9d
cmp ecx, 0x10
jge 0x56ccbb
inc ecx
mov dword [0x1007128], ecx
xor eax, eax
mov ecx, 0x1007170
xchg dword [ecx], eax
jmp 0x56caef
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret