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

Disassembly:
push 0x34
mov eax, 0x414e1d
call fcn.0040657b
mov edi, ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [edi + 8]
mov dword [ebp - 4], 1
call fcn.00401d0b
xor ebx, ebx
cmp dword [eax], ebx
jne 0x40162a
mov eax, dword [0x41d180]
imul eax, eax
push 0x16
cdq
pop ecx
idiv ecx
cmp edx, 0x13
jne 0x401618
call fcn.004081e0
mov edx, dword [0x41d180]
cmp edx, eax
jne 0x401618
dec edx
mov dword [0x41d180], edx
lea eax, [ebp + 0x20]
push eax
mov ecx, edi
call fcn.00401d7a
mov byte [eax], bl
jmp 0x401718
push 0xf
pop esi
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.004012a1
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
call fcn.004012a1
cmp byte [ebp + 0x38], 0
mov byte [ebp - 4], 3
jne 0x401677
push 0x41
push 1
lea ecx, [ebp - 0x28]
call fcn.0040211e
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp + 8]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
lea ecx, [edi + 8]
call fcn.00401d0b
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x4016f4
lea eax, [ebp + 0x20]
push eax
mov ecx, edi
call fcn.00401d7a
mov byte [eax], bl
call fcn.00402b85
test al, al
jne 0x4016e2
mov esi, dword [0x41d180]
mov edx, ebx
push 8
mov ecx, edx
pop edi
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor ecx, eax
dec edi
jne 0x4016c0
add esi, ecx
inc edx
cmp edx, 0x100
jl 0x4016bb
mov dword [0x41d180], esi
lea ecx, [ebp - 0x40]
call fcn.00401056
lea ecx, [ebp - 0x28]
call fcn.00401056
jmp 0x401718
lea ecx, [ebp - 0x40]
call fcn.00401056
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00401056
lea eax, [ebp + 0x20]
push eax
mov ecx, edi
call fcn.00401d7a
mov byte [eax], 1
mov ebx, esi
lea ecx, [ebp + 8]
call fcn.00401056
lea ecx, [ebp + 0x20]
call fcn.00401056
mov eax, ebx
call fcn.00406539
ret 0x34

Function at 0x4030d8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp + 8], eax
call fcn.00404c76
xor ebx, ebx
test al, al
jne 0x403101
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x403110
test al, 0x10
je 0x403110
xor ebx, ebx
inc ebx
mov al, bl
pop ebx
pop ebp
ret
Function at 0x404456
Capabilities:
Get disk size

Disassembly:
push 0xc4
mov eax, 0x41516b
call fcn.0040657b
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xd0], eax
call fcn.00404bc4
xor ebx, ebx
test al, al
jne 0x40448a
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 4], ebx
call fcn.00404bec
test al, al
jne 0x4044b3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x41d180], eax
lea eax, [ebp - 0xc0]
push esi
push eax
call fcn.00403442
pop ecx
pop ecx
push 0x2001f
push dword [eax]
lea ecx, [ebp - 0xcc]
push 0x80000001
call fcn.00403dd2
mov ecx, dword [ebp - 0xc0]
test eax, eax
lea ecx, [ecx - 0x10]
setne bl
call fcn.00403fa4
test bl, bl
jne 0x4045a6
mov esi, dword [0x41d180]
push 3
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
pop ebx
idiv ebx
mov ebx, 0x1fffff
push ebx
mov dword [ebp - 0xc0], 0x1fffff
cmp edx, 2
cmove esi, ecx
mov dword [0x41d180], esi
call fcn.00408218
push ebx
xor ebx, ebx
mov esi, eax
push ebx
push esi
call fcn.00408150
add esp, 0x10
lea eax, [ebp - 0xc0]
push eax
mov eax, dword [ebp - 0xd0]
push esi
push dword [eax]
lea ecx, [ebp - 0xcc]
call fcn.00403eb5
lea ecx, [ebp - 0xcc]
test eax, eax
je 0x40456f
call fcn.004031e3
push esi
call fcn.00408213
pop ecx
jmp 0x4045a8
call fcn.004031e3
mov eax, dword [ebp - 0xc0]
mov byte [esi + eax], bl
call fcn.00404d28
test al, al
jne 0x404593
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push esi
mov ecx, edi
call fcn.004041f7
push esi
call fcn.00408213
pop ecx
mov bl, 1
jmp 0x4045a8
xor ebx, ebx
lea ecx, [ebp - 0xcc]
call fcn.004031e3
mov al, bl
call fcn.00406539
ret
Function at 0x40f726
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040bdeb
mov dword [ebp - 0x14], eax
cmp dword [0x41debc], edi
jne 0x40f817
push 0x800
push edi
push 0x4179e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40f7a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f8f7
push 0x4179e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40f8f7
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f8f7
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x41debc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x41dec0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x41dec4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41decc], eax
test eax, eax
je 0x40f814
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41dec8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f83c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f82f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40f851
push 4
pop eax
jmp 0x40f8f9
cmp dword [ebp - 0x14], edi
je 0x40f851
push dword [0x41debc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f836
mov eax, dword [0x41dec8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40f8af
cmp dword [0x41decc], esi
je 0x40f8af
push eax
call ebx
push dword [0x41decc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f8af
test eax, eax
je 0x40f8af
call ecx
test eax, eax
je 0x40f8a4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f8a4
test byte [ebp - 8], 1
jne 0x40f8af
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40f8df
mov eax, dword [0x41dec0]
cmp eax, esi
je 0x40f8dc
push eax
call ebx
test eax, eax
je 0x40f8dc
call eax
mov edi, eax
test edi, edi
je 0x40f8dc
mov eax, dword [0x41dec4]
cmp eax, esi
je 0x40f8dc
push eax
call ebx
test eax, eax
je 0x40f8dc
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x41debc]
call ebx
test eax, eax
je 0x40f8f7
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40f8f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004064bb
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407571
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407571
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407571
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407571
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407571
mov dword [0x41203c], eax
call fcn.00407571
test eax, eax
jge 0x402550
push 8
call fcn.00407571
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407571
pop ecx
push 1
call fcn.00407571
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407571
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407571
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407571
jmp 0x402495

Function at 0x407571
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x407580
pop dword [ebp - 0x34]
mov eax, 0x7030c949
sub eax, 0x6ff053c9
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x39468
push 0
mov eax, 0xa0cc1e34
add eax, 0x5f74c2a4
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0xcadea0b5
add ecx, 0x3521a743
mov edx, eax
mov esi, 0x21564d5e
sub esi, 0x2115119a
add esi, dword [ebp - 0x34]
mov ebx, 0xb5f0a4c4
sub ebx, 0x7ef211c5
sub dword [ebp - 0x20], 0xf722a629
mov edi, dword [esi]
xor dword [ebp - 0x2c], 0x8acb4e8b
xor edi, ebx
mov dword [ebp - 4], 0xe08053f8
mov dword [edx], edi
add dword [ebp - 0x1c], eax
add edx, 0x6a0ff262
sub edx, 0x6a0ff25e
add esi, 0xf62c2a32
sub esi, 0xf62c2a2e
loop 0x4075df
add eax, 0x112b3
xor ebx, ebx
add ebx, eax
add eax, 0x54de119b
sub eax, 0x54de1196
mov ecx, 0x186c0948
sub ecx, 0x182c0948
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x2a854792
Capabilities:
Check if file exists

Disassembly:
push 0x64
mov eax, 0x2a9817de
call fcn.2a84a756
mov ebx, ecx
cmp dword [ebx + 4], 0xffffffff
jne 0x2a8548d3
push 0xffffffffffffffff
lea edi, [ebx + 0xc]
push 0x2a98a1b4
mov ecx, edi
call fcn.2a886a5c
mov eax, dword [ebx]
push 0
push 0xffffffffffffffff
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x2a9874b0]
mov ecx, ebx
call esi
push eax
lea ecx, [ebp - 0x54]
call fcn.2a84a704
and dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.2a8c803d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.2a84cb0c
lea ecx, [ebp - 0x4c]
call fcn.2a84cb2e
push edi
lea ecx, [ebp - 0x3c]
call fcn.2a850168
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.2a8c886a
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
call fcn.2a8c9159
mov esi, eax
mov dword [ebp - 0x18], vtable.RSSecurityUtilsWin::CLocalFreeGuard.0
pop ecx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebx + 8]
xor edi, edi
mov byte [ebp - 4], 3
cmp dword [ecx], edi
jne 0x2a854898
lea ecx, [ebp - 0x3c]
call fcn.2a8c886a
push edi
push 0x40110000
push 3
lea ecx, [ebp - 0x24]
push ecx
push edi
push 0xc0000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
jne 0x2a854898
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x2a8548ef
cmp eax, 0xe7
jne 0x2a8548d9
lea ecx, [ebp - 0x3c]
call fcn.2a8c886a
push 0x4e20
push eax
call dword [sym.imp.kernel32.dll_WaitNamedPipeA]
test eax, eax
je 0x2a8548fe
mov eax, dword [ebx + 8]
cmp dword [eax], edi
je 0x2a85483e
cmp dword [ebx + 4], 0xffffffff
je 0x2a8548b4
push edi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 2
push eax
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_SetNamedPipeHandleState]
mov byte [ebp - 4], 6
test esi, esi
je 0x2a8548c3
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
lea ecx, [ebp - 0x2c]
call fcn.2a84cb0c
lea ecx, [ebp - 0x34]
call fcn.2a84cb2e
call fcn.2a84a9ee
ret
push edi
push 0xffffffffffffffff
push str.Problem_Opening_channel
lea ecx, [ebp - 0x54]
call fcn.2a84a704
mov byte [ebp - 4], 4
jmp 0x2a854912
lea ecx, [ebp - 0x70]
call fcn.2a8544ff
push 0x2a9ef2e0
jmp 0x2a854923
push edi
push 0xffffffffffffffff
push str.Problem_Opening_channel__all_pipe_instances_are_busy
lea ecx, [ebp - 0x54]
call fcn.2a84a704
mov byte [ebp - 4], 5
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x70]
call fcn.2a886a5c
push 0x2a9ef338
lea eax, [ebp - 0x70]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a854c0d
Capabilities:
Read file on windows

Disassembly:
push 0x74
mov eax, 0x2a98184c
call fcn.2a84a756
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0x30]
push 0x14
push ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.VCRUNTIME140.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
je 0x2a854d8d
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_ReadFile]
test eax, eax
jne 0x2a854d77
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x2a854cf9
cmp eax, 0x6d
je 0x2a854d27
push ebx
push 0xffffffffffffffff
push str.Read_Error
lea ecx, [ebp - 0x48]
call fcn.2a84a704
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x80]
call fcn.2a886a5c
push 0x2a9ef338
lea eax, [ebp - 0x80]
jmp 0x2a854db5
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x2a854d0b
push ebx
push ebx
push ebx
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x2a854cf9
cmp eax, 0xffffffff
je 0x2a854d36
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x2a854cbc
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x2a854d3f
sub eax, 1
jne 0x2a854c5a
lea ecx, [ebp - 0x64]
call fcn.2a85441f
push 0x2a9ef354
jmp 0x2a854db2
mov dword [ebp - 4], 2
jmp 0x2a854d7e
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]
test eax, eax
jne 0x2a854d77
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x2a854d27
push ebx
push 0xffffffffffffffff
push str.unexpected_error
lea ecx, [ebp - 0x48]
call fcn.2a84a704
mov byte [ebp - 4], 3
jmp 0x2a854da1
mov dword [ebp - 4], 5
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a84a9ee
ret 8
push ebx
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x48]
call fcn.2a84a704
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.2a886a5c
push 0x2a9ef338
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a854dbc
Capabilities:
Read file on windows

Disassembly:
push 0x58
mov eax, 0x2a98188a
call fcn.2a84a756
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0x30]
push 0x14
push ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.VCRUNTIME140.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
je 0x2a854ec8
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_ReadFile]
test eax, eax
jne 0x2a854eb2
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x2a854e97
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x2a854e5f
sub eax, 1
jne 0x2a854e09
lea ecx, [ebp - 0x64]
call fcn.2a85441f
push 0x2a9ef354
jmp 0x2a854eed
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]
test eax, eax
jne 0x2a854eb2
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x2a854e4d
push ebx
push 0xffffffffffffffff
push str.unexpected_error
lea ecx, [ebp - 0x48]
call fcn.2a84a704
mov byte [ebp - 4], 2
jmp 0x2a854edc
cmp eax, 0x6d
je 0x2a854e4d
push ebx
push 0xffffffffffffffff
push str.Read_Error
lea ecx, [ebp - 0x48]
call fcn.2a84a704
mov byte [ebp - 4], 3
jmp 0x2a854edc
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a84a9ee
ret 8
push ebx
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x48]
call fcn.2a84a704
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.2a886a5c
push 0x2a9ef338
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a854ef7
Capabilities:
Write file on windows

Disassembly:
push 0x74
mov eax, 0x2a9818bd
call fcn.2a84a756
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x2a855031
xor ebx, ebx
lea eax, [ebp - 0x30]
push 0x14
push ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.VCRUNTIME140.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 0x2a854f73
push ebx
push esi
push str.Failed_to_create_connection
lea ecx, [ebp - 0x48]
call fcn.2a84a704
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x64]
call fcn.2a886a5c
push 0x2a9ef338
jmp 0x2a85503e
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 0x2a854fc8
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x2a854fde
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x2a854fb5
sub eax, 1
jne 0x2a854f73
jmp 0x2a855031
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]
push esi
mov dword [ebp - 4], 3
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a84a9ee
ret 8
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xe8
je 0x2a855022
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xe9
je 0x2a855022
push ebx
push 0xffffffffffffffff
push str.Connection_Closed
lea ecx, [ebp - 0x48]
call fcn.2a84a704
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x80]
call fcn.2a886a5c
push 0x2a9ef338
lea eax, [ebp - 0x80]
jmp 0x2a855041
lea ecx, [ebp - 0x80]
call fcn.2a85441f
push 0x2a9ef354
jmp 0x2a85501d
lea ecx, [ebp - 0x64]
call fcn.2a85441f
push 0x2a9ef354
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a86a5e0
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x2a982c35
call fcn.2a84a756
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 0xf
mov byte [eax], bl
mov eax, dword fs:[0x2c]
xor edi, edi
mov ecx, dword [0x2aa0032c]
inc edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x2a9fee84]
cmp eax, dword [ecx + 4]
jg 0x2a86a794
mov eax, dword [ebp + 0x10]
mov edi, ebx
test eax, eax
je 0x2a86a786
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 0x2a86a6cf
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 [0x2a9fee80], 0x10
mov ecx, 0x2a9fee6c
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x2a9fee6c]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.2a886a5c
inc edi
cmp edi, 4
jl 0x2a86a697
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 0x2a86a639
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x2a86a786
mov eax, edi
cmp edi, esi
jge 0x2a86a705
cmp eax, esi
jae 0x2a86a78f
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x2a86a6ed
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 0x2a86a771
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x2a9fee80], 0x10
mov ecx, 0x2a9fee6c
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x2a9fee6c]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.2a886a5c
inc ebx
cmp ebx, edi
jl 0x2a86a742
mov edi, dword [ebp - 0x1c]
push 3
pop esi
cmp edi, esi
jge 0x2a86a786
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.2a886a5c
sub esi, 1
jne 0x2a86a777
mov eax, dword [ebp + 8]
call fcn.2a84a9ee
ret
call fcn.2a886a5c
mov esi, 0x2a9fee84
push esi
call fcn.2a886a5c
cmp dword [0x2a9fee84], 0xffffffff
pop ecx
jne 0x2a86a629
lea eax, [ebp - 0xf]
mov dword [ebp - 4], edi
push eax
push 0x2a98a0b0
mov ecx, 0x2a9fee6c
call fcn.2a84e515
push 0x2a986860
call fcn.2a886a5c
push esi
mov byte [ebp - 4], bl
call fcn.2a886a5c
pop ecx
pop ecx
jmp 0x2a86a629