joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433e81
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x20]
and byte [ebp + 0xb], 0
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebx + edi]
cmp eax, 0x10
mov dword [ecx], eax
jae 0x433ec1
push edi
push dword [ebp + 0xc]
lea eax, [ebx + esi + 0x10]
push eax
call fcn.00be1330
mov eax, dword [ebp + 0x18]
add dword [esi + 0x20], edi
add esp, 0xc
and dword [eax], 0
jmp 0x433fc5
mov edi, dword [ebp + 0x14]
cmp dword [ebp + 0xc], edi
jne 0x433eed
push dword [ebp + 0x10]
call fcn.00be2578
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
push eax
call fcn.00be1330
mov eax, dword [ebp - 4]
add esp, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp + 0xb], 1
mov dword [ebp + 0x14], 0x10
sub dword [ebp + 0x14], ebx
push dword [ebp + 0x14]
lea eax, [ebx + esi + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00be1330
mov eax, dword [ebp + 0x14]
add dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
lea ebx, [eax + ebx - 0x10]
lea eax, [esi + 0x24]
push esi
push eax
call fcn.004322e6
mov eax, dword [esi]
xor eax, dword [esi + 0x10]
add esp, 0x14
mov dword [edi], eax
mov eax, dword [esi + 0x14]
xor eax, dword [esi + 4]
add edi, 0x10
mov dword [edi - 0xc], eax
mov eax, dword [esi + 0x18]
xor eax, dword [esi + 8]
mov dword [edi - 8], eax
mov eax, dword [esi + 0x1c]
xor eax, dword [esi + 0xc]
cmp ebx, 0x10
mov dword [edi - 4], eax
jb 0x433f94
mov eax, ebx
shr eax, 4
mov dword [ebp + 0x10], eax
lea eax, [esi + 0x24]
push esi
push eax
call fcn.004322e6
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
mov ecx, dword [esi]
xor ecx, dword [eax]
add eax, 0x10
mov dword [edi], ecx
mov ecx, dword [eax - 0xc]
xor ecx, dword [esi + 4]
add edi, 0x10
mov dword [edi - 0xc], ecx
mov ecx, dword [eax - 8]
xor ecx, dword [esi + 8]
sub ebx, 0x10
mov dword [edi - 8], ecx
mov ecx, dword [eax - 4]
xor ecx, dword [esi + 0xc]
dec dword [ebp + 0x10]
mov dword [edi - 4], ecx
mov dword [ebp + 0xc], eax
jne 0x433f53
push ebx
push dword [ebp + 0xc]
lea eax, [esi + 0x10]
push eax
call fcn.00be1330
mov eax, dword [esi + 0x20]
and eax, 0xf0000000
add eax, ebx
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
sub dword [eax], ebx
add esp, 0xc
cmp byte [ebp + 0xb], 0
je 0x433fc5
push dword [ebp - 4]
call fcn.00be248f
pop ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret

Function at 0x433fcc
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + 0x20]
lea eax, [esi + 0x24]
push esi
push eax
mov dword [ebx], 0x10
call fcn.004322e6
test edi, edi
pop ecx
pop ecx
jbe 0x434006
mov ecx, dword [esp + 0x14]
mov eax, esi
sub ecx, esi
mov esi, edi
mov dl, byte [eax + 0x10]
xor dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
dec esi
jne 0x433ffa
mov dword [ebx], edi
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x43400e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x20]
and byte [ebp + 0xb], 0
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebx + edi]
cmp eax, 0x10
mov dword [ecx], eax
ja 0x43404e
push edi
push dword [ebp + 0xc]
lea eax, [ebx + esi + 0x10]
push eax
call fcn.00be1330
mov eax, dword [ebp + 0x18]
add dword [esi + 0x20], edi
add esp, 0xc
and dword [eax], 0
jmp 0x43415d
mov edi, dword [ebp + 0x14]
cmp dword [ebp + 0xc], edi
jne 0x43407a
push dword [ebp + 0x10]
call fcn.00be2578
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
push eax
call fcn.00be1330
mov eax, dword [ebp - 4]
add esp, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp + 0xb], 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x14], 0x10
sub dword [ebp + 0x14], ebx
push dword [ebp + 0x14]
add eax, ebx
push dword [ebp + 0xc]
mov dword [ecx], eax
lea eax, [ebx + esi + 0x10]
push eax
call fcn.00be1330
mov eax, dword [ebp + 0x14]
add dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
lea ebx, [eax + ebx - 0x10]
lea eax, [esi + 0x24]
push esi
push eax
call fcn.004322e6
mov eax, dword [esi + 0x10]
xor eax, dword [esi]
add esp, 0x14
mov dword [edi], eax
mov eax, dword [esi + 0x14]
xor eax, dword [esi + 4]
add edi, 0x10
mov dword [edi - 0xc], eax
mov eax, dword [esi + 0x18]
xor eax, dword [esi + 8]
mov dword [edi - 8], eax
mov eax, dword [esi + 0x1c]
xor eax, dword [esi + 0xc]
cmp ebx, 0x10
mov dword [edi - 4], eax
jbe 0x43412c
lea eax, [ebx - 1]
shr eax, 4
mov dword [ebp + 0x10], eax
lea eax, [esi + 0x24]
push esi
push eax
call fcn.004322e6
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
mov ecx, dword [esi]
xor ecx, dword [eax]
add eax, 0x10
mov dword [edi], ecx
mov ecx, dword [eax - 0xc]
xor ecx, dword [esi + 4]
add edi, 0x10
mov dword [edi - 0xc], ecx
mov ecx, dword [eax - 8]
xor ecx, dword [esi + 8]
sub ebx, 0x10
mov dword [edi - 8], ecx
mov ecx, dword [eax - 4]
xor ecx, dword [esi + 0xc]
dec dword [ebp + 0x10]
mov dword [edi - 4], ecx
mov dword [ebp + 0xc], eax
jne 0x4340eb
push ebx
push dword [ebp + 0xc]
lea eax, [esi + 0x10]
push eax
call fcn.00be1330
mov eax, dword [esi + 0x20]
and eax, 0xf0000000
add eax, ebx
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
sub dword [eax], ebx
add esp, 0xc
cmp byte [ebp + 0xb], 0
je 0x43415d
push dword [ebp - 4]
call fcn.00be248f
pop ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret

Function at 0x434164
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + 0x20]
lea eax, [esi + 0x24]
push esi
push eax
mov dword [ebx], edi
call fcn.004322e6
test edi, edi
pop ecx
pop ecx
jbe 0x43419a
mov ecx, dword [esp + 0x14]
mov eax, esi
sub ecx, esi
mov esi, edi
mov dl, byte [eax + 0x10]
xor dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
dec esi
jne 0x43418e
mov dword [ebx], edi
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x4584ec
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x458553
mov dword [ebp - 0x14], 1
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.advapi32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x45854a
mov dword [ebp - 8], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
leave
ret
Function at 0x458809
Capabilities:
Copy file
Get common file path
Parse pe header
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
push esi
push edi
jmp 0x458827
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
push str.ws2_32.dll
lea eax, [ebp - 0x104]
push eax
call fcn.00be2bf0
pop ecx
pop ecx
push 0xd3c128
lea eax, [ebp - 0x20c]
push eax
call fcn.00be2c00
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00be2c00
pop ecx
pop ecx
lea eax, [ebp - 0x314]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x314]
push eax
push 0
push 0xd3c124
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
push 0
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.kernel32.dll_CopyFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0xffffffff
je 0x4589b5
push 0
lea eax, [ebp - 0x358]
push eax
push 0x40
lea eax, [ebp - 0x354]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.kernel32.dll_ReadFile]
movzx eax, word [ebp - 0x354]
cmp eax, 0x5a4d
jne 0x4589a9
push 0
push 0
push dword [ebp - 0x318]
push dword [ebp - 0x210]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x358]
push eax
push 0xf8
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.kernel32.dll_ReadFile]
cmp dword [ebp - 0x450], 0x4550
jne 0x4589a9
cmp dword [ebp - 0x41c], 0x80000000
jbe 0x4589a9
mov dword [ebp - 0x41c], 0x10000000
push 0
push 0
push dword [ebp - 0x318]
push dword [ebp - 0x210]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x358]
push eax
push 0xf8
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp - 0x210]
call dword [sym.imp.kernel32.dll_CloseHandle]
push 8
push 0
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov dword [ebp - 0x108], eax
jmp 0x4589de
mov eax, dword [ebp - 0x108]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4589e9
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
and dword [ebp - 4], 0
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.00be2bf0
pop ecx
pop ecx
push str.nst.tmp
lea eax, [ebp - 0x34c]
push eax
call fcn.00be2c00
pop ecx
pop ecx
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov dword [ebp - 0x350], eax
cmp dword [ebp - 0x350], 0xffffffff
jne 0x458a55
jmp 0x458aba
push 1
pop eax
test eax, eax
je 0x458aae
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.00be2bf0
pop ecx
pop ecx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.00be2c00
pop ecx
pop ecx
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x350]
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x458aac
jmp 0x458aae
jmp 0x458a55
push dword [ebp - 0x350]
call dword [sym.imp.kernel32.dll_FindClose]
leave
ret

Function at 0x458abc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
jmp 0x458ad6
and dword [ebp - 4], 0
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
pop eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
je 0x458b12
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp + 8]
je 0x458b12
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x458af4
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x458b20
jmp 0x458bb3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x40]
mov dword [eax + 4], ecx
push 0x48
push 0
push dword [ebp - 8]
call fcn.00be1770
add esp, 0xc
jmp 0x458bb3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x458bb8
Capabilities:
Contain obfuscated stackstrings
Create a process with modified i/o handles and window
Create process on windows
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
push ebx
push esi
push edi
jmp 0x458bd6
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries000000000001
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x458c77
push 0x400
mov ecx, 0xd86a88
call fcn.004030bb
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0x400
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push 0
push 0
push str.PackedCatalogItem
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push str.wpclsp.dll
push dword [ebp - 0xc]
call fcn.00be2ce0
pop ecx
pop ecx
test eax, eax
je 0x458c51
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18c], eax
push dword [ebp - 0x18c]
mov ecx, 0xd86a88
call fcn.00403243
and dword [ebp - 0xc], 0
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x458dd2
mov byte [ebp - 0x140], 0x5c
mov byte [ebp - 0x13f], 0x5c
mov byte [ebp - 0x13e], 0x6e
mov byte [ebp - 0x13d], 0x65
mov byte [ebp - 0x13c], 0x74
mov byte [ebp - 0x13b], 0x73
mov byte [ebp - 0x13a], 0x68
mov byte [ebp - 0x139], 0x2e
mov byte [ebp - 0x138], 0x65
mov byte [ebp - 0x137], 0x78
mov byte [ebp - 0x136], 0x65
mov byte [ebp - 0x135], 0x20
mov byte [ebp - 0x134], 0x77
mov byte [ebp - 0x133], 0x69
mov byte [ebp - 0x132], 0x6e
mov byte [ebp - 0x131], 0x73
mov byte [ebp - 0x130], 0x6f
mov byte [ebp - 0x12f], 0x63
mov byte [ebp - 0x12e], 0x6b
mov byte [ebp - 0x12d], 0x20
mov byte [ebp - 0x12c], 0x72
mov byte [ebp - 0x12b], 0x65
mov byte [ebp - 0x12a], 0x73
mov byte [ebp - 0x129], 0x65
mov byte [ebp - 0x128], 0x74
and byte [ebp - 0x127], 0
push 0x104
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00be2c00
pop ecx
pop ecx
push 0x44
push 0
lea eax, [ebp - 0x184]
push eax
call fcn.00be1770
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00be1770
add esp, 0xc
mov dword [ebp - 0x184], 0x44
mov dword [ebp - 0x158], 0x101
and word [ebp - 0x154], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x184]
push eax
push 0
push 0
push 0x20
push 1
push 0
push 0
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x458dd2
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
jmp 0x458de4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4878ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [eax + 2]
mov dword [ebp - 4], eax
sub dword [ebp - 4], esi
lea edi, [ebp + 0xa]
mov ecx, 0xbaadf00d
sub edi, esi
mov dword [ebp - 8], 2
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
movzx ebx, byte [esi]
mov dl, al
xor eax, ecx
xor dl, bl
push 5
push eax
mov byte [edi + esi], dl
call fcn.00be1744
add eax, ebx
pop ecx
inc esi
dec dword [ebp - 8]
pop ecx
mov ecx, eax
jne 0x4878df
cmp ecx, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
je 0x487923
push 0xc99538
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 5
call fcn.00be12e7
mov ax, word [ebp + 0xa]
leave
ret
Function at 0x4a9610
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
jmp 0x4a962b
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4a9693
and dword [ebp - 0xc], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
je 0x4a9691
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x30]
call fcn.00be419b
pop ecx
pop ecx
test eax, eax
jne 0x4a9687
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
jmp 0x4a9691
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x4a965a
jmp 0x4a96a2
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a96ad
mov eax, dword [ebp - 4]
jmp 0x4a96c1
jmp 0x4a96bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a96c6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0x7c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x24], 0
jne 0x4a9705
mov eax, dword [ebp - 0x20]
jmp 0x4a97e6
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 4], ecx
and dword [ebp - 0x1c], 0
jmp 0x4a973f
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x14]
jae 0x4a97e3
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + eax*4], 0
jne 0x4a9760
jmp 0x4a9738
and dword [ebp - 0x2c], 0
jmp 0x4a976d
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax + 0x18]
jae 0x4a979a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + eax*2]
cmp eax, dword [ebp - 0x1c]
jne 0x4a9798
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x30], edx
jmp 0x4a979a
jmp 0x4a9766
cmp dword [ebp - 0x30], 0
je 0x4a97de
push dword [ebp + 0xc]
push dword [ebp - 0x30]
call fcn.00be2140
pop ecx
pop ecx
test eax, eax
jne 0x4a97de
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax*4]
cmp eax, dword [ebp - 0x24]
jb 0x4a97cd
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax*4]
cmp eax, dword [ebp - 8]
jb 0x4a97dc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x20], edx
jmp 0x4a97e3
jmp 0x4a9738
mov eax, dword [ebp - 0x20]
leave
ret

Function at 0x4af3b8
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x14]
mov esi, ecx
call fcn.004af01c
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4af400
cmp byte [edi], 0
je 0x4af400
push edi
call dword [0xd86500]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4af400
push edi
call dword [sym.imp.ws2_32.dll_gethostbyname]
test eax, eax
je 0x4af3fa
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
jmp 0x4af400
call dword [0xd864c0]
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x4c4881
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
mov ecx, dword [ebp + 8]
je 0x4c4890
xor dword [ebp + 0x10], ecx
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
jb 0x4c4a32
mov esi, edi
push ebx
shr esi, 4
movzx ebx, byte [ecx]
mov edx, eax
shr edx, 0x18
xor edx, ebx
mov ebx, eax
mov eax, dword [edx*4 + 0xd3c510]
shl ebx, 8
xor eax, ebx
movzx ebx, byte [ecx + 1]
mov edx, eax
shr edx, 0x18
xor edx, ebx
mov edx, dword [edx*4 + 0xd3c510]
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 0x18
shl edx, 8
inc ecx
movzx ebx, byte [ecx + 1]
xor eax, ebx
mov eax, dword [eax*4 + 0xd3c510]
xor eax, edx
inc ecx
movzx ebx, byte [ecx + 1]
mov edx, eax
shr edx, 0x18
xor edx, ebx
mov edx, dword [edx*4 + 0xd3c510]
shl eax, 8
xor edx, eax
inc ecx
movzx ebx, byte [ecx + 1]
mov eax, edx
shr eax, 0x18
xor eax, ebx
mov eax, dword [eax*4 + 0xd3c510]
shl edx, 8
xor eax, edx
inc ecx
movzx ebx, byte [ecx + 1]
mov edx, eax
shr edx, 0x18
xor edx, ebx
mov edx, dword [edx*4 + 0xd3c510]
shl eax, 8
xor edx, eax
inc ecx
movzx ebx, byte [ecx + 1]
mov eax, edx
shr eax, 0x18
xor eax, ebx
mov eax, dword [eax*4 + 0xd3c510]
shl edx, 8
xor eax, edx
inc ecx
movzx ebx, byte [ecx + 1]
mov edx, eax
shr edx, 0x18
xor edx, ebx
mov edx, dword [edx*4 + 0xd3c510]
inc ecx
movzx ebx, byte [ecx + 1]
shl eax, 8
xor edx, eax
mov eax, edx
inc ecx
shr eax, 0x18
xor eax, ebx
mov eax, dword [eax*4 + 0xd3c510]
movzx ebx, byte [ecx + 1]
shl edx, 8
xor eax, edx
inc ecx
mov edx, eax
shr edx, 0x18
xor edx, ebx
mov edx, dword [edx*4 + 0xd3c510]
shl eax, 8
xor edx, eax
inc ecx
movzx ebx, byte [ecx]
mov eax, edx
shr eax, 0x18
xor eax, ebx
mov eax, dword [eax*4 + 0xd3c510]
movzx ebx, byte [ecx + 1]
shl edx, 8
xor eax, edx
mov edx, eax
shr edx, 0x18
xor edx, ebx
mov edx, dword [edx*4 + 0xd3c510]
shl eax, 8
xor edx, eax
inc ecx
movzx ebx, byte [ecx + 1]
mov eax, edx
shr eax, 0x18
xor eax, ebx
mov eax, dword [eax*4 + 0xd3c510]
shl edx, 8
xor eax, edx
inc ecx
movzx ebx, byte [ecx + 1]
mov edx, eax
shr edx, 0x18
xor edx, ebx
mov edx, dword [edx*4 + 0xd3c510]
inc ecx
movzx ebx, byte [ecx + 1]
shl eax, 8
xor edx, eax
inc ecx
mov eax, edx
shr eax, 0x18
xor eax, ebx
mov eax, dword [eax*4 + 0xd3c510]
movzx ebx, byte [ecx + 1]
shl edx, 8
xor eax, edx
inc ecx
mov edx, eax
shr edx, 0x18
xor edx, ebx
mov edx, dword [edx*4 + 0xd3c510]
shl eax, 8
xor eax, edx
inc ecx
sub edi, 0x10
dec esi
jne 0x4c48a7
pop ebx
cmp edi, 1
jb 0x4c4a51
movzx esi, byte [ecx]
mov edx, eax
shr edx, 0x18
xor edx, esi
mov edx, dword [edx*4 + 0xd3c510]
shl eax, 8
xor eax, edx
inc ecx
dec edi
jne 0x4c4a37
mov ecx, dword [ebp + 0x18]
test ecx, ecx
pop edi
pop esi
je 0x4c4a60
mov dword [ecx], 0xd
pop ebp
ret