joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067e8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406827
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406827
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406827
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406827
cmp dword [ecx + 0x74], 0xe
jbe 0x406827
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40fb64
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ccec
push 0x41cce4
push str.FlsAlloc
push 0x1f
call fcn.0040fa9f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fb98
push dword [ebp + 8]
mov ecx, esi
call dword [0x4191e0]
call esi
jmp 0x40fb9e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40fbe2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ccfc
push 0x41ccf4
push str.FlsGetValue
push 0x21
call fcn.0040fa9f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fc19
push dword [ebp + 8]
mov ecx, esi
call dword [0x4191e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40fc21
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41cd04
push 0x41ccfc
push str.FlsSetValue
push 0x22
call fcn.0040fa9f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fc5b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4191e0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x414dd6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42d014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x414e21
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00414f71
test al, al
jne 0x414e1b
sub edx, 2
cmp edx, edi
jne 0x414e01
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x414e43
lea eax, [edi + 2]
cmp edx, eax
je 0x414e43
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00414d22
add esp, 0x10
jmp 0x414f3d
push esi
lea ecx, [ebp - 0x255]
call fcn.00414f71
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414e86
push dword [ebp - 0x25c]
jmp 0x414e33
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x414ec3
cmp word [ebp - 0x226], 0
je 0x414ee4
cmp word [ebp - 0x226], ax
jne 0x414ec3
cmp word [ebp - 0x224], 0
je 0x414ee4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00414d22
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x414f30
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x414e9d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x414f18
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x414f3d
push 0x414b52
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040c820
add esp, 0x10
jmp 0x414f0d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a68
leave
ret
Function at 0x418040
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41806d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41806d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001940
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
xor ebx, ebx
push ebx
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001abc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10001a57
mov ebx, 1
cmp dword [ebp - 0x20], 0x10
jb 0x10001a1a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10001a1a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10001a1a
mov edx, dword [esi]
test edx, edx
jne 0x100019e6
push 0x200
push edx
push dword [0x10007668]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10001a3f
jmp 0x10001a0e
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10001a0e
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x10007668]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10001a3f
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100019a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10001a57
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x10001a57
push eax
push ebx
push dword [0x10007668]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10001abc
cmp dword [esi], 0
je 0x10001aa9
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10001aa9
nop
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10001aa3
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.100017d0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10001a70
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100031cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 9
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100031cd
mov esp, ebp
pop ebp
ret
Function at 0x10001ae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x10007690]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001b3c
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100031cd
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10001b57
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100031cd
mov esp, ebp
pop ebp
ret

Function at 0x10001b90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x10007698]
sub esp, 0x10
push esi
xor esi, esi
test ecx, ecx
je 0x10001bbd
mov eax, dword [0x10007690]
add eax, 0x14
nop dword [eax + eax]
test byte [eax], 2
je 0x10001bc4
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10001bb0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10001bbd
push ebx
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001940
mov ebx, eax
mov dword [ebp - 4], eax
add esp, 4
test ebx, ebx
jne 0x10001c7f
mov ecx, dword [0x10007698]
push edi
cmp esi, ecx
jae 0x10001c2a
imul edi, esi, 0x2c
nop word [eax + eax]
mov eax, dword [0x10007690]
test byte [edi + eax + 0x14], 2
jne 0x10001c1f
mov ecx, esi
call fcn.10001ae0
mov ebx, eax
test ebx, ebx
jne 0x10001c27
mov ecx, dword [0x10007698]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10001c00
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10001c7c
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10001c6d
mov ebx, eax
nop word [eax + eax]
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10001c61
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10001c40
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10007668]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002c90
Capabilities:
Create thread
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10002d05
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 0
call ebx
push 0
mov esi, eax
call ebx
push esi
push 0x1000534c
push str.CONIN_
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
push 1
call ebx
push 1
mov esi, eax
call ebx
push esi
push 0x10005358
push str.CONOUT_
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
add esp, 0x30
push 0x10005364
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0
push 0
push dword [ebp + 8]
push 0x10002b60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebx
mov eax, 1
pop ebp
ret 0xc

Function at 0x1000395a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x1000398f
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x1000398c
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x10003998
add edx, 0x28
cmp edx, esi
jne 0x1000397a
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x10003995
Function at 0xa96058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa961a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa9607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9606a
add dl, dl
jne 0xa96089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa960dc
xor eax, eax
add dl, dl
jne 0xa96096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9617d
add dl, dl
jne 0xa960a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa960b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa960bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa960c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa960d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa96075
mov eax, 1
add dl, dl
jne 0xa960ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa960f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa960e1
sub eax, ebx
mov ebx, 1
jne 0xa96128
mov ecx, 1
add dl, dl
jne 0xa9610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa96119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa96105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa96075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa9613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa9614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa96136
cmp eax, 0x7d00
jae 0xa9616d
cmp eax, 0x500
jb 0xa96168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa96075
cmp eax, 0x7f
ja 0xa96170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa96075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa9619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa96075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100017d0
Capabilities:
Hash data using fnv

Disassembly:
mov edx, ecx
test edx, edx
jne 0x100017d9
xor eax, eax
ret
mov al, byte [edx]
push esi
mov esi, 0x811c9dc5
test al, al
je 0x10001805
lea ecx, [eax - 0x41]
movsx eax, al
cmp cl, 0x19
ja 0x100017f3
add eax, 0x20
movzx eax, al
inc edx
xor eax, esi
imul esi, eax, 0x1000193
mov al, byte [edx]
test al, al
jne 0x100017e5
mov eax, esi
pop esi
ret
Function at 0x1000a5f0
Capabilities:
Encode data using xor

Disassembly:
insd dword es:[edi], dx
or al, 0x4a
mov ebp, 0x2acfeea4
pushfd
adc ch, byte [esi + 0x2fb058ea]
cmc
loope 0x1000a5c1
xor eax, 0x4ec80408
invalid

Function at 0x1000a790
Capabilities:
Encode data using xor

Disassembly:
rcr dword [edi + 6], 0xb6
mov esi, 0x90537581
sub dword [edx], eax
mov byte [0xfac9b42c], al
pop esp
daa
push es
mov dh, 0xbe
xor dword [ebp + 0x53], 0xa2022990
sub al, 0xb4
leave
cli
js 0x1000a791
les ecx, [edx - 0x7235fe63]
dec ecx
pop edi
fst dword [esi + 0x68fc54f3]
invalid

Function at 0x1000b1e0
Capabilities:
Encode data using xor

Disassembly:
vpaddb xmm6, xmm1, xmmword [ebp + 0x70]
loop 0x1000b1a9
push ebp
iretd
mov cl, 0x43
mov bl, 0xef
pushal
inc ebp
aam 0x68
mov dword [edx], esi
inc eax
and al, 0x6d
xor al, byte [eax + 0x24]
insd dword es:[edi], dx
lds ecx, [ebp + 0x343bc601]
sbb edi, dword [edx + 0x31ffd68f]
push esi
lds eax, [edx - 0x69]
jl 0x1000b1b2
das
xchg esp, eax
push ebp
scasb al, byte es:[edi]
scasb al, byte es:[edi]
push ebx
dec ebx
popfd
idiv bl
jp 0x1000b202
dec edx
jg 0x1000b24a
clc
mov ebp, 0x340b362c
jp 0x1000b182
mov eax, ds
sub eax, esi
sub dl, dh
invalid
inc edi
aas
pop ss
dec ecx
jge 0x1000b231
cmp al, 0xdf
jb 0x1000b264
mov word [ebx + 0x4b610059], es
popal
adc al, 0xe1
add ch, ah
dec eax
xor bl, byte [ecx + 0x119b47ac]
lodsd eax, dword [esi]
iretd
and eax, 0x99c24f9d
jl 0x1000b2b2
pop es
mov word [edi + 0xf2f482f], fs
invalid
scasd eax, dword es:[edi]
pushfd
les edx, [edx + 0x22]
pop ebp
pushfd
lahf
and esp, dword [ebx]
mov edi, ds
push ss
mov dh, 0x31
inc esp
cmp bl, byte [ebx]
out 0x6c, al
and dword [edx], ebx
stc
in eax, 0xf1
inc esi
test al, 0xb8
loopne 0x1000b2e5
into
popfd
push ds
invalid
pop eax
or esi, dword es:[edx - 0x128f648]
xchg ecx, eax
mov cs, word [esi]
push cs
jl 0x1000b327
je 0x1000b24a
xchg esi, eax
push edi
cmp al, 0x2a
jae 0x1000b266
mov dword [0xe71b7754], eax
jp 0x1000b2a6
jnp 0x1000b269
cmp ebp, esp
imul byte [ecx - 0x7b9f5534]
inc esi
iretd
cmpsb byte [esi], byte es:[edi]
scasb al, byte es:[edi]
mov ch, 0xb
mov esp, 0x13a98ba5
into
ret 0xa9bc
outsb dx, byte [esi]
push edi
invalid

Function at 0x1000be38
Capabilities:
Encode data using xor

Disassembly:
push 0x4e
mov al, 0x88
movsd dword es:[edi], dword [esi]
or dword [eax + 0x6e4ce41], ebp
salc
pop eax
adc eax, 0xb8e663f
pop esi
lds eax, [ecx]
enter 0x5b43, 0x6d
adc edx, dword [ebx - 0x714911cb]
fcmovnbe st(0), st(6)
ficom word [ebx]
push ss
test al, 0x6e
xchg edx, eax
and al, 0xd6
lahf
sar dword [eax], cl
mov cl, 0x62
out 0x87, eax
stc
xor dword [edi + 0x58], ebx
jae 0x1000be44
mov al, byte [0x8bf93f7d]
hlt
Function at 0x40acbe
Capabilities:
Create pipe

Disassembly:
add edx, dword [eax + 0x68]
in al, 0x7a
dec edx
add al, ch
stc
out dx, eax
add eax, dword [eax]

Function at 0x40b8b2
Capabilities:
Create pipe
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push 0x128
push dword [ebp + 0x78]
call dword [0x4a6798]
push ebx
push ebx
push ebx
push esi
call dword [0x4a684c]
push dword [ebp + 0x78]
call dword [0x4a679c]
cmp dword [ebp + 0x2c], ebx
jle 0x40b8ab
mov esi, dword [ebp + 0x70]
lea eax, [ebp + 0x78]
mov dword [ebp + 0x78], esi
call fcn.00448657
mov eax, dword [ebp + 0x78]
mov word [eax], bx
cmp word [esi], bx
je 0x40b8ab
push 0xffffffffffffffff
push str.__k:0
lea ecx, [ebp + 0x68]
call fcn.0045113e
push dword [ebp + 0x64]
lea ecx, [ebp + 0x68]
call fcn.00448a66
push 0x4a7a20
lea ecx, [ebp + 0x68]
call fcn.00448a73
push esi
lea ecx, [ebp + 0x68]
call fcn.00448a7c
push ebx
push dword [ebp + 0x68]
mov ecx, edi
call fcn.0046b9ce
lea ecx, [ebp + 0x68]
mov ebx, eax
call fcn.00442ac1
lea ecx, [ebp + 0x7c]
call fcn.00442ac9
add byte [ebp + 0x16e8004d], cl
jb 0x40b8bd
add byte [ebp + 0x16e8744d], cl
jb 0x40b8c5
add byte [ebp + 0x7ee9704d], cl
and eax, dword [eax]
invalid

Function at 0x40b8f7
Capabilities:
Create pipe
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebx
push eax
call fcn.00423efc
add esp, 0xc
push eax
lea ecx, [ebp - 0xec]
mov dword [ebp + 0x64], eax
call fcn.00448af6
lea eax, [ebp - 0xc4]
push eax
call fcn.0040f212
pop ecx
mov dword [ebp + 0x4c], eax
dec esp
Function at 0x40ba7e
Capabilities:
Create pipe
Create process on windows
Write and execute a file
Write file on windows
Write pipe

Disassembly:
call fcn.0044a9dc
add esp, 0xc
test al, al
jne 0x40ba95
cmp dword [0x4c0c60], ebx
jne 0x40ba3f
push ebx
push 0x24
lea eax, [ebp - 0x5b4]
push eax
push ebx
mov word [ebp - 0x5b4], bx
call dword [0x4a6564]
lea eax, [ebp - 0x5b4]
mov edi, 0x4c0c60
push eax
mov ecx, edi
call fcn.00451378
push str.System32cmd.exe
mov ecx, edi
call fcn.00448c13
push dword [0x4c0c60]
call dword [0x4a6508]
mov word [0x4c0c10], ax
movsx eax, word [0x4c0c10]
push eax
push dword [ebp - 0x6c]
adc byte [esp + ecx*2], cl
add byte [eax - 1], dl
jne 0x40b9de
mov dword [ebp + 0x38], ebx
push dword [0x4c0c60]
call fcn.00418ffe
add esp, 0xc
test al, al
je 0x40bb0a
movsx eax, word [0x4c0c10]
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx + eax*2]
xor eax, eax
mov ax, word [ecx]
cmp ax, 0x22
je 0x40ba88
call fcn.00442ca9
test al, al
je 0x40bb0a
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], ecx
call fcn.00410026
pop ecx
push 2
lea eax, [ebp - 0x6c]
push eax
push 0x4a79ec
call fcn.0044aa9e
add esp, 0xc
test al, al
je 0x40bb0a
mov eax, dword [ebp - 0x6c]
cmp word [eax], 0x22
jne 0x40baf0
add eax, 2
mov dword [ebp + 0x78], eax
lea eax, [ebp + 0x78]
push eax
call fcn.00442d25
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x22
pop ecx
je 0x40bae5
push 4
lea eax, [ebp + 0x78]
push eax
push str.call
call fcn.0044aad7
add byte [ebx - 0x3f7bf33c], al
je 0x40baed
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0x6c], eax
jmp 0x40baf0
mov eax, dword [ebp - 0x6c]
push ebx
mov dword [ebp + 0x64], eax
lea eax, [ebp + 0x64]
push ebx
push eax
call fcn.004240fc
add esp, 0xc
mov esi, eax
mov dword [ebp + 0x38], 1
mov eax, esi
sub eax, dword [ebp + 0x64]
and eax, 0xfffffffe
cmp eax, 8
jle 0x40b920
mov edi, dword [0x4a65cc]
push 4
lea eax, [esi - 8]
push str..cmd
push eax
call edi
test eax, eax
je 0x40bb47
push 4
push str..bat
lea eax, [esi - 8]
push eax
call edi
test eax, eax
Function at 0x40cb4d
Capabilities:
Write file on windows

Disassembly:
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x10], ebx
mov eax, dword [ebp - 0x168]
jne 0x40c6f2
mov eax, 0x4a71c4
push eax
push str.exedat
push dword [ebp - 0x78]
lea eax, [ebp - 0x90]
push dword [ebp + 0x10]
push eax
call fcn.00411074
add esp, 0x14
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp + 0xc]
call fcn.00452045
mov edi, dword [ebp - 0x44]
lea eax, [ebp + 0x4c]
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x44]
cmp edi, ebx
mov dword [ebp - 0x78], eax
setne al
cmp al, bl
mov dword [ebp - 0x9c], ebx
je 0x40c762
push ebx
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0xa8]
push dword [ebp + 0x14]
push edi
call dword [0x4a6194]
push edi
call fcn.0044771e
pop ecx
push edi
call dword [0x4a64ec]
jmp 0x40c76f
cmp dword [ebp - 0x174], 1
jle 0x40cbda
cmp esi, ebx
push dword [ebp - 0x90]
mov byte [ebp + 0x7b], bl
je 0x40c8ce
mov eax, dword [ebp + 0x4c]
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x4c], ebx
call fcn.004520e8
push str..ex
lea ecx, [ebp + 0x4c]
call fcn.00449984
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp + 0xc]
call fcn.004520d3
cmp word [esi], 0x5c
je 0x40c7b8
add esi, 0xfffffffe
mov word [esi], 0x5c
push ebx
push dword [ebp + 0xc]
call dword [0x4a63fc]
cmp word [ebp - 0x28], 1
jne 0x40c811
push 0x4a7970
lea ecx, [ebp + 0x18]
call fcn.00452069
push dword [ebp + 0x38]
lea ecx, [ebp + 0x18]
call fcn.004499c7
push 0x4a7968
lea ecx, [ebp + 0x18]
call fcn.004499d4
push dword [ebp + 0x4c]
lea ecx, [ebp + 0x18]
call fcn.004499df
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0x44]
call fcn.004352e0
lea ecx, [ebp + 0x18]
call fcn.00443a22
jmp 0x40c8af
cmp word [ebp - 0x28], 0x100
jne 0x40c8af
push 0xf
pop ecx
xor eax, eax
mov dword [ebp - 0x2e4], 0x44
mov dword [ebp - 0x2e0], ebx
lea edi, [ebp - 0x2dc]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c8], ebx
lea edi, [ebp - 0x1c4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp + 0xc]
call fcn.0045222d
push esi
lea eax, [ebp - 0x2a0]
push eax
push dword [ebp + 0x58]
push dword [ebp + 0x68]
push dword [ebp + 0x54]
push dword [ebp - 4]
push edi
push dword [ebp - 0xa8]
push dword [ebp + 0x14]
call fcn.0049543d
add esp, 0x28
cmp word [ebp + 0x38], bx
mov dword [ebp - 0xdc], eax
je 0x40cb86
mov ax, word [ebp + 0x38]
mov word [edi], ax
cmp dword [ebp - 0xdc], ebx
jl 0x40c6df
mov esi, dword [esi + 8]
cmp esi, ebx
je 0x40c6df
push esi
push ebx
push 0x400
call dword [0x4a64bc]
cmp eax, ebx
je 0x40c6df
push eax
call dword [0x4a64ec]
xor eax, eax
cmp dword [ebp - 0xdc], ebx
setg al
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x90]
cmp eax, ebx
je 0x40cbda
cmp word [eax], bx
jne 0x40cacb