joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f4b1
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 [0x53b700]
mov dword [ebp - 0xc], ecx
mov edx, dword [0x53b704]
mov dword [ebp - 8], edx
mov eax, dword [0x53b708]
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 0x48f526
mov eax, 2
jmp 0x48f6c8
push 0x53b70c
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 0x48f551
mov eax, 3
jmp 0x48f6c8
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 0x48f5af
mov ecx, dword [ebp - 0x10034]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x11
jmp 0x48f6c8
cmp dword [ebp - 0x1001c], 0xc8
jb 0x48f5c7
cmp dword [ebp - 0x1001c], 0x12c
jb 0x48f5e1
mov edx, dword [ebp - 0x10034]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0x10
jmp 0x48f6c8
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 0x48f62b
mov eax, dword [ebp - 0x10034]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 4
jmp 0x48f6c8
cmp dword [ebp - 0x10024], 0
jne 0x48f636
jmp 0x48f6a6
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 0x48f699
mov eax, dword [ebp - 0x10034]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
jmp 0x48f6c8
mov ecx, 1
test ecx, ecx
jne 0x48f5ed
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 0x48f6cc
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 0x48f719
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.0048f4b1
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x48f720
mov eax, 5
jmp 0x48f723
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x48f84e
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 0x48f882
xor eax, eax
jmp 0x48f9f8
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 0x48f8a3
xor eax, eax
jmp 0x48f9f8
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 0x48f939
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 0x48f8f3
xor eax, eax
jmp 0x48f9f8
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.00409000
mov byte [ebp - 0x20d], 0
lea ecx, [ebp - 0x318]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00407f00
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 0x48f95a
xor eax, eax
jmp 0x48f9f8
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 0x48f9f3
mov eax, dword [ebp - 0x10c]
sub eax, dword [ebp - 4]
add eax, 1
cmp eax, 0x104
jbe 0x48f993
xor eax, eax
jmp 0x48f9f8
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.00409000
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x48f9df
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x48f9d4
mov eax, dword [ebp - 4]
mov byte [eax], 0x2f
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x48f9b9
lea edx, [ebp - 0x107]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00409000
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x48f9fc
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 0x48fa37
jmp 0x48fb81
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 0x48fa58
jmp 0x48fb7f
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 0x48fb41
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0x53b7fc
mov edx, dword [ebp - 0x110]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x48fae4
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 0x48faf3
mov dword [ebp - 0x114], 0
jmp 0x48fb7d
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 0x48fb41
mov eax, dword [ebp - 0x118]
push eax
push 0x53b840
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 0x48fb7b
cmp dword [ebp - 0x114], 0
jne 0x48fb50
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
cmp dword [ebp - 0x110], 0
je 0x48fb73
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 0x48fb83
jmp 0x48fb41
jmp 0x48fb41
jmp 0x48fb41
jmp 0x48fb41
mov esp, ebp
pop ebp
ret
Function at 0x48fdb2
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 0x48fe15
mov dword [ebp - 0x14], 5
jmp 0x48ff03
push 0
push 0
push 3
push 0
push 0
push 0x50
push 0x53b874
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 0x48fe45
mov dword [ebp - 0x14], 8
jmp 0x48ff01
mov dword [ebp - 0x24], 0x4400040
push 0
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0
push 0x53b884
push 0x53b890
push 0x53b8a4
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 0x48fe81
mov dword [ebp - 0x14], 9
jmp 0x48feff
push 0xa0000000
push 0xd
push 0x53b8ac
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x48fea4
mov dword [ebp - 0x14], 0xc
jmp 0x48fefd
push 0
push 0
push 0x31
push 0x53b8bc
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x48fec6
mov dword [ebp - 0x14], 0xa
jmp 0x48fefb
cmp dword [ebp - 0x20], 0
je 0x48fed6
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x10], 0
je 0x48fee6
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x18], 0
je 0x48fef6
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x14]
jmp 0x48ff05
jmp 0x48fec6
jmp 0x48fec6
jmp 0x48fec6
jmp 0x48fec6
jmp 0x48fec6
mov esp, ebp
pop ebp
ret
Function at 0x4953a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac6d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
push 0
mov edi, dword [esi + 0x10]
mov edx, dword [esi + 0x90]
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0x94]
sub edi, edx
push 0x10000
sbb ebx, ecx
push ebx
push edi
call sub.ntdll.dll__alldiv
push 0
push 0x10000
push ebx
push edi
mov dword [ebp - 0x18], eax
call sub.ntdll.dll__allrem
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 8]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x94]
push ebx
push ebx
push eax
push ecx
push edx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x495444
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x90]
push eax
push ecx
push str.SetFilePointerEx__I64d__
push ebx
push 0x20e
push str.D:SVN360BaseQHPEParser.cpp
call fcn.004a3d40
add esp, 0x18
xor edi, edi
cmp edi, dword [ebp - 0x18]
jae 0x4954f4
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x14]
push ebx
push edx
push 0x10000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x495483
push 0x53c388
push ebx
push 0x212
push str.D:SVN360BaseQHPEParser.cpp
call fcn.004a3d40
add esp, 0x10
cmp dword [ebp - 0x14], 0x10000
je 0x4954a5
push 0x53c37c
push 1
push 0x213
push str.D:SVN360BaseQHPEParser.cpp
call fcn.004a44d0
add esp, 0x10
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x7c]
push edx
push eax
lea ecx, [esi + 0x24]
call fcn.0049ada0
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x94]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x88], ecx
mov dword [esi + 0x8c], edx
mov edx, ecx
add edx, eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x90], edx
mov ecx, dword [esi + 0x94]
adc ecx, ebx
inc edi
mov dword [esi + 0x94], ecx
jmp 0x495446
mov edi, dword [ebp - 0x1c]
cmp edi, ebx
je 0x495596
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 8]
lea eax, [ebp - 0x14]
push ebx
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49552f
push 0x53c388
push ebx
push 0x21c
push str.D:SVN360BaseQHPEParser.cpp
call fcn.004a3d40
add esp, 0x10
cmp dword [ebp - 0x14], edi
je 0x49554d
push 0x53c37c
push 1
push 0x21d
push str.D:SVN360BaseQHPEParser.cpp
call fcn.004a44d0
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x7c]
push eax
push ecx
lea ecx, [esi + 0x24]
call fcn.0049ada0
mov edx, dword [esi + 0x90]
mov eax, dword [esi + 0x94]
mov dword [esi + 0x88], edx
mov dword [esi + 0x8c], eax
mov eax, dword [ebp - 0x14]
mov ecx, edx
add ecx, eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x90], ecx
mov eax, dword [esi + 0x94]
adc eax, ebx
mov dword [esi + 0x94], eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [esi + 0x24]
call fcn.0049adc0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49a190
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 0x4a20a0
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 0x4a20e1
push ebx
lea ecx, [edi + 4]
mov dword [esp + 0x1c], ebx
call fcn.004a39a0
mov ebx, dword [eax]
and ebx, 0xffffff
cmp ebx, esi
jbe 0x4a20c3
mov edx, dword [edi + 0x20]
cmp ebx, edx
jne 0x4a20fa
cmp esi, edx
jb 0x4a20ef
lea ebx, [esi + 1]
cmp ebx, edx
jbe 0x4a20fa
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 0x4a2137
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 0x4a2115
cmp ebx, edx
jae 0x4a21ad
mov eax, dword [esp + 0x14]
mov ebp, 1
xor esi, esi
cmp ebp, eax
jae 0x4a218a
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 0x4a2186
push esi
lea ecx, [edi + 4]
call fcn.004a39a0
test dword [eax], 0x1000000
jne 0x4a2186
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ebp
add ecx, 4
cmp ebp, eax
mov dword [esp + 0x10], ecx
jb 0x4a2152
cmp ebp, dword [esp + 0x14]
je 0x4a21ad
cmp esi, dword [edi + 0x20]
jae 0x4a21ad
push ebx
lea ecx, [edi + 4]
mov dword [esp + 0x1c], ebx
call fcn.004a39a0
mov ebx, dword [eax]
mov eax, dword [edi + 0x20]
and ebx, 0xffffff
cmp ebx, eax
jb 0x4a213b
mov eax, dword [esp + 0x14]
mov esi, dword [edi + 0x20]
mov ebp, dword [esp + eax*4 + 0x1c]
add ebp, ebx
cmp esi, ebp
ja 0x4a21f2
lea ecx, [esi + 1]
mov dword [esp + 0x10], ecx
push esi
lea ecx, [edi + 4]
call fcn.004a39a0
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 0x4a21c5
inc ebp
mov dword [edi + 0x20], ebp
mov eax, dword [esp + 0x14]
mov esi, ebx
test eax, eax
jbe 0x4a228c
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 0x4a2234
push esi
mov ecx, edi
mov dword [esp + 0x1c], esi
call fcn.004a39a0
mov esi, dword [eax]
and esi, 0xffffff
cmp esi, ebp
jne 0x4a221c
push esi
mov ecx, edi
call fcn.004a39a0
mov edx, dword [eax]
push esi
or edx, 0x1000000
mov ecx, edi
mov dword [eax], edx
call fcn.004a39a0
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
mov ecx, edi
call fcn.004a39a0
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 0x4a220f
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 0x4a7300
Capabilities:
Get thread local storage value
Print debug messages
Set thread local storage value

Disassembly:
mov ecx, 0x556c2c
jmp fcn.004a7310

Function at 0x4a79e0
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 0x4a7a51
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x4a7a51
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 0x4a7a3a
jmp 0x4a7a51
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 0x4a9080
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 0x567aae
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 0x567adf
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 0x567ae6
cmp ebx, dword [ebp + 8]
jae 0x567ae6
xor eax, eax
jmp 0x567ccc
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x567af7
xor eax, eax
inc eax
jmp 0x567ccb
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x567b09
cmp ecx, edx
jae 0x567b6d
cmp dword [eax + 4], 0
je 0x567b12
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x567afe
cmp dword [ebp + 8], 0
je 0x567b2c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x567b6d
cmp eax, esi
jae 0x567b6d
mov ecx, dword [0x1007128]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x567b4e
cmp dword [eax*4 + 0x1007130], esi
je 0x567b74
inc eax
cmp eax, ecx
jl 0x567b40
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.00567ce2
test eax, eax
jl 0x567be4
mov eax, dword [ebp + 8]
jmp 0x567be6
xor eax, eax
jmp 0x567ccb
test eax, eax
jle 0x567aef
xor edx, edx
mov ebx, 0x1007170
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x567aef
cmp dword [eax*4 + 0x1007130], esi
je 0x567bc3
lea eax, [ecx - 1]
test eax, eax
jl 0x567bb0
cmp dword [eax*4 + 0x1007130], esi
je 0x567bac
dec eax
jns 0x567ba0
test eax, eax
jge 0x567bc1
cmp ecx, 0x10
jge 0x567bbc
inc ecx
mov dword [0x1007128], ecx
lea eax, [ecx - 1]
jmp 0x567bc3
je 0x567bdb
xor edx, edx
test eax, eax
jl 0x567bdb
lea ecx, [edx*4 + 0x1007130]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x567bc9
xor eax, eax
xchg dword [ebx], eax
jmp 0x567aef
xor eax, eax
test eax, eax
je 0x567cc9
cmp dword [ebp - 8], 0x1000000
jne 0x567cc9
test byte [ebp - 0xc], 0xcc
je 0x567c5b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x567cc9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x567cc9
cmp word [eax + 0x18], 0x10b
jne 0x567cc9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x567cc9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x567c5b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x567c5b
test byte [ecx + 0x27], 0x80
jne 0x567b6d
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x1007170
xchg dword [edx], ecx
test ecx, ecx
jne 0x567ccb
mov ecx, dword [0x1007128]
test ecx, ecx
mov edx, ecx
jle 0x567c8a
lea eax, [ecx*4 + 0x100712c]
cmp dword [eax], esi
je 0x567c8a
dec edx
sub eax, 4
test edx, edx
jg 0x567c7e
test edx, edx
jne 0x567cbb
push 0xf
pop ebx
cmp ecx, ebx
jg 0x567c97
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x567caf
lea eax, [edx*4 + 0x1007130]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x567c9d
cmp ecx, 0x10
jge 0x567cbb
inc ecx
mov dword [0x1007128], ecx
xor eax, eax
mov ecx, 0x1007170
xchg dword [ecx], eax
jmp 0x567aef
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6c7f7e
Capabilities:
Hash data with md5

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

Function at 0x6d7000
Capabilities:
Execute syscall

Disassembly:
mov eax, dword [0x1000aae8]
lea edx, [esp + 4]
int 0x2e
ret 0x28

Function at 0x6e91f8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1001df38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea eax, [esi + 0xc]
push eax
call dword [0x1001f040]
lea ecx, [esp + 4]
call fcn.006f5be0
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0
call fcn.006f5be0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 8]
mov dword [esp + 0x20], 1
call fcn.006f5c04
mov eax, dword [esp + 0x28]
lea ecx, [esp + 8]
push eax
call fcn.006f5c04
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0xc], ecx
lea ecx, [esi + 0x24]
lea edx, [esp + 4]
push edx
push 1
push eax
call fcn.006ea4f8
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
call dword [eax + 0x1c]
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 2
call fcn.006f5bda
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call fcn.006f5bda
mov ecx, dword [esp + 0x14]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x6f3178
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
cmp ebx, 1
push edi
jl 0x6f3193
cmp ebx, 8
jg 0x6f3193
mov eax, 1
jmp 0x6f3195
xor eax, eax
mov esi, dword [esp + 0x14]
push 0x10028540
push eax
push esi
call fcn.006f19d8
mov eax, dword [esi + 0x6af70]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af78], ebp
jne 0x6f31cc
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
mov ecx, 0x7fff
xor eax, eax
lea edi, [esi + 0x4af70]
mov dword [esi + 0x6af6c], ebp
rep stosd dword es:[edi], eax
mov ax, word [ebx*8 + 0x1002323a]
xor ecx, ecx
mov dword [esi + 0x6af98], eax
mov cx, word [ebx*8 + 0x10023238]
xor edx, edx
mov dword [esi + 0x6af9c], ecx
mov dx, word [ebx*8 + 0x1002323c]
xor eax, eax
mov dword [esi + 0x6afa0], edx
mov ax, word [ebx*8 + 0x1002323e]
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x6f322d
mov eax, dword [esp + 0x1c]
or byte [eax], 4
jmp 0x6f3239
cmp ebx, 8
jl 0x6f3239
mov eax, dword [esp + 0x1c]
or byte [eax], 2
lea edi, [esi + 0x1af70]
push 0x10000
push edi
push esi
mov dword [esi + 0x6af84], ebp
mov dword [esi + 0x6af74], ebp
call dword [esi + 0xc]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af90], eax
je 0x6f32b2
cmp eax, 0xffffffff
je 0x6f32b2
cmp eax, 0x106
mov dword [esi + 0x6af8c], ebp
jae 0x6f327d
push esi
call fcn.006f34c8
add esp, 4
mov dword [esi + 0x6af7c], ebp
xor eax, eax
mov edx, dword [esi + 0x6af7c]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x3ff
and ecx, 0x7fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0x6af7c], ecx
jb 0x6f3285
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebp
pop edi
pop esi
pop ebp
pop ebx
ret