joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x420ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x420ee4
pop dword [ebp - 0x18]
mov eax, 0x420ee4
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x34649827
add dword [ebp - 0x28], 0x19edad24
mov dword [ebp - 0x24], 0xe2e2d08e
sub dword [ebp - 0x24], 0xb0af8449
mov dword [ebp - 0x20], 0xa9d214e8
add dword [ebp - 0x20], 0xa27a2f46
mov dword [ebp - 0x1c], 0xa7fa83e9
add dword [ebp - 0x1c], 0x58057c17
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x48cd3e12
sub dword [ebp - 0x28], 0xd45ad4bc
mov dword [ebp - 0x24], 0xe506a4e4
add dword [ebp - 0x24], 0x5c65bc91
mov dword [ebp - 0x20], 0xdfb17482
sub dword [ebp - 0x20], 0x7c420816
mov dword [ebp - 0x1c], 0x2ca0420c
add dword [ebp - 0x1c], 0xd35fbdf4
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xc32e740f
sub eax, 0xc2ec42eb
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3d8e0
push 0
call eax
mov ecx, 0x32d4efc4
add ecx, 0xcd2b5771
mov edi, eax
mov ebx, 0x434400
add ebx, dword [ebp - 0x18]
mov esi, 0xa1b813ce
mov dword [ebp - 0x10], 0x6e143ab4
mov edx, dword [ebx]
sub dword [ebp - 0x10], ecx
add edx, esi
add dword [ebp - 8], ecx
mov dword [edi], edx
xor dword [ebp - 8], edx
add edi, 4
add ebx, 0x2f82ecc4
add ebx, 0xd07d1340
loop 0x420ff0
add eax, 0x10fa7
xor ebx, ebx
add ebx, eax
add eax, 0x8b4d81e9
add eax, 0x74b27e1c
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
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.2a8842a6
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.2a8842a6
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.2a8842a6
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.2a8842a6
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.2a8842a6
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.2a8842a6
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.2a8842a6
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.2a8842a6
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.2a8842a6
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.2a8842a6
sub esi, 1
jne 0x2a86a777
mov eax, dword [ebp + 8]
call fcn.2a84a9ee
ret
call fcn.2a8842a6
mov esi, 0x2a9fee84
push esi
call fcn.2a8842a6
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.2a8842a6
push esi
mov byte [ebp - 4], bl
call fcn.2a8842a6
pop ecx
pop ecx
jmp 0x2a86a629
Function at 0x2a872c57
Capabilities:
Encode data using base64

Disassembly:
push 0x18
mov eax, 0x2a983df4
call fcn.2a84a756
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], esi
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x14], edi
jb 0x2a872c7f
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x10], eax
mov byte [esi], cl
push ecx
shl eax, 2
push 3
mov dword [ebp - 4], ecx
pop ecx
cdq
idiv ecx
mov dword [ebp - 0x18], 1
add eax, ecx
mov ecx, esi
push eax
call fcn.2a8842a6
mov ebx, dword [esi + 0x14]
mov ecx, esi
cmp ebx, 0x10
jb 0x2a872cbb
mov ecx, dword [esi]
xor edx, edx
cmp dword [ebp - 0x10], edx
jle 0x2a872d71
mov esi, dword [ebp - 0x14]
movzx eax, byte [esi + edx]
shr eax, 2
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
mov al, byte [eax + 0x2a98b938]
mov byte [ecx], al
inc ecx
mov bl, byte [esi + edx]
and bl, 3
shl bl, 4
inc edx
cmp edx, dword [ebp - 0x10]
jge 0x2a872cf9
mov al, byte [esi + edx]
shr al, 4
or bl, al
movzx eax, bl
mov ebx, dword [ebp - 0x10]
mov al, byte [eax + 0x2a98b938]
mov byte [ecx], al
cmp edx, ebx
jge 0x2a872d36
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x2a872d15
mov eax, dword [edi]
mov cl, byte [eax + edx]
and cl, 0xf
shl cl, 2
inc edx
cmp edx, ebx
jge 0x2a872d2b
mov al, byte [esi + edx]
shr al, 6
or cl, al
movzx eax, cl
mov al, byte [eax + 0x2a98b938]
jmp 0x2a872d38
mov al, 0x3d
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 2], al
mov ecx, dword [ebp - 0x1c]
add ecx, 4
cmp edx, ebx
jge 0x2a872d57
movzx eax, byte [esi + edx]
and eax, 0x3f
mov al, byte [eax + 0x2a98b938]
jmp 0x2a872d59
mov al, 0x3d
mov ebx, dword [ebp - 0x20]
inc edx
mov byte [ebx + 3], al
mov ebx, dword [ebp - 0x10]
cmp edx, ebx
jl 0x2a872cc9
mov esi, dword [ebp - 0x24]
mov ebx, dword [esi + 0x14]
mov eax, esi
cmp ebx, 0x10
jb 0x2a872d7a
mov eax, dword [esi]
sub ecx, eax
push 0
push ecx
mov ecx, esi
call fcn.2a8842a6
mov eax, esi
call fcn.2a84a9ee
ret

Function at 0x2a875045
Capabilities:
Get hostname

Disassembly:
push 0x44c
mov eax, 0x2a984252
call fcn.2a8c96b3
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x410]
mov edi, 0x400
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push edi
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x2a87509d
lea eax, [ebp - 0x44d]
mov ecx, esi
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.2a84e515
mov eax, esi
call fcn.2a8c9691
ret
push 0x93
lea ecx, [ebp - 0x458]
call fcn.2a8842a6
and dword [ebp - 4], 0
lea ecx, [ebp - 0x44c]
push ecx
mov ecx, eax
call fcn.2a86a7dd
push eax
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 1
call fcn.2a869d94
push 0x2a9f21f8
lea eax, [ebp - 0x434]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a8842a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x2a8842b5
pop dword [ebp - 0x44]
mov eax, 0x3225bef3
sub eax, 0x79d7c3e
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x25d1500b
add dword [ebp - 0x54], 0x2880f540
mov dword [ebp - 0x50], 0x417b05bd
add dword [ebp - 0x50], 0xf0b84688
mov dword [ebp - 0x4c], 0xeb11b25e
add dword [ebp - 0x4c], 0x613a91d0
mov dword [ebp - 0x48], 0xd42d824b
sub dword [ebp - 0x48], 0xd42d824b
lea eax, [ebp - 0x54]
push eax
mov eax, 0x8206f764
add eax, 0xa89179ec
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x86c85c63
add dword [ebp - 0x54], 0xedaa0cf3
mov dword [ebp - 0x50], 0x2c3348c7
sub dword [ebp - 0x50], 0xeac6e752
mov dword [ebp - 0x4c], 0xb4deba0d
sub dword [ebp - 0x4c], 0x516f4da1
mov dword [ebp - 0x48], 0x102afbe2
add dword [ebp - 0x48], 0xefd5041e
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xbcec9795
add eax, 0x6dabd9b3
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x49f0c
push 0
call eax
mov ecx, 0xd999d03
add ecx, 0xf266aa9a
mov edi, eax
mov esi, 0xa452e887
add esi, 0x864f7379
add esi, dword [ebp - 0x44]
mov ebx, 0xe5e7da52
xor dword [ebp - 0x14], esi
mov edx, dword [esi]
mov dword [ebp - 4], 0xf237baa0
xor edx, ebx
mov dword [edi], edx
add dword [ebp - 0x30], 0x8ae95838
add edi, 4
add esi, 0x963bda85
add esi, 0x69c4257f
loop 0x2a8843d1
add eax, 0x11147
xor ebx, ebx
add ebx, eax
add eax, 0x479453b9
sub eax, 0x479453b4
mov ecx, 0xcc8e329a
add ecx, 0x5df1cd66
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x2a8bbca0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.2a8ca120
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x30], 1
je 0x2a8bbd2a
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x2a8bbd2e
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0x3c8]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.2a893790
push eax
call fcn.2a8cccb0
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x2a8bbd37
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x2a8bbce2
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x14], eax
test eax, eax
je 0x2a8bbdb4
mov eax, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr eax, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x10]
lea edi, [edi - 1]
mov edx, esi
mov ecx, ebp
sub edx, ebp
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc ebp
movzx ecx, byte [esp + 0x2c]
or dl, al
movzx eax, byte [edi + 1]
dec dl
movzx edx, dl
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
cmp ebp, dword [esp + 0x14]
jb 0x2a8bbd75
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov eax, ecx
pop ebx
mov dword [edi + 8], esi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret

Function at 0x2a8c94f1
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x2a9867e9
call fcn.2a84a756
mov edi, ecx
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push 0x10
mov dword [ebp - 0x54], esi
call fcn.2a8842a6
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
test esi, esi
je 0x2a8c9536
push 0x10
push ebx
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x2a8c9538
mov esi, ebx
or dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [edi + 0x24], esi
call fcn.2a8c88a9
push dword [edi + 0x24]
lea ecx, [ebp - 0x54]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
call fcn.2a84a9ee
ret
Function at 0x2a8e8ad0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.2a8842a6
push 0x62
push esi
mov edi, eax
mov ebx, 1
call sub.VCRUNTIME140.dll_strchr
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x2a8e8b75
push 0x48
push str.crypto_bio_bss_file.c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 1
push 2
call fcn.2a8cf650
push 0x2a9905c4
push esi
push 0x2a9b2914
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.2a8ced60
add esp, 0x2c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 2
je 0x2a8e8b52
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 6
je 0x2a8e8b52
lea eax, [edi + 2]
lea ecx, [edi + 0x51]
jmp 0x2a8e8b5c
mov eax, 0x80
mov ecx, 0x4f
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.2a8cf650
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x2a9b28bc
call fcn.2a8cd060
mov esi, eax
add esp, 4
test esi, esi
jne 0x2a8e8b97
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.2a8cca00
push edi
push ebx
push 0x6a
push esi
call fcn.2a8cca30
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x406234
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x405d83
mov dword [esp + 4], 0x405d90
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.0044f0de
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x405d83
mov dword [esp + 4], 0x405dc7
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.0044f0de
call sub.cygwin1.dll___getreent
mov dword [esp + 4], 0x405df0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.0044f0de
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x405d83
mov dword [esp + 4], 0x405e15
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.0044f0de
call sub.cygwin1.dll___getreent
mov dword [esp + 4], 0x405e30
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.0044f0de
mov dword [esp], 0x405e5b
call fcn.00450633
mov dword [esp], 0x405e90
call fcn.00450633
mov dword [esp], 0x405ed0
call fcn.00450633
mov dword [esp], 0x405ef0
call fcn.00450633
mov dword [esp], 0x405f30
call fcn.00450633
mov dword [esp], 0x405f70
call fcn.00450633
mov dword [esp], 0x405fb0
call fcn.00450633
mov dword [esp], 0x406010
call fcn.00450633
mov dword [esp], 0x406050
call fcn.00450633
mov dword [esp], 0x406090
call fcn.00450633
mov dword [esp], 0x4060d0
call fcn.00450633
mov dword [esp], 0x406110
call fcn.00450633
mov dword [esp], 0x406170
call fcn.00450633
mov dword [esp], 0x4061b0
call fcn.00450633
mov dword [esp], 0x4061f0
call fcn.00450633
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_exit